3
Copyright (C) 1996 Maurizio Plaza
7
This program is free software; you can redistribute it and/or modify
8
it under the terms of the GNU General Public License as published by
9
the Free Software Foundation; either version 2 of the License, or
10
(at your option) any later version.
12
This program is distributed in the hope that it will be useful,
13
but WITHOUT ANY WARRANTY; without even the implied warranty of
14
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
GNU General Public License for more details.
17
You should have received a copy of the GNU General Public License
18
along with this program; if not, write to the Free Software
19
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
23
#include <stringops.h>
26
char passwdbuff[CMD_LENG];
28
extern int tab_ambiguous;
30
void silo_cmdinit(void)
36
void silo_cmdedit(void (*tabfunc)(void), int password)
39
char *buff = password ? passwdbuff : cbuff;
41
for (x = 0; x < CMD_LENG - 1; x++) {
59
if (tabfunc) (*tabfunc)();
70
prom_puts ("\b \b", 3);
75
if ((c & 0xE0) != 0) {
77
if (x < CMD_LENG - 1) {
80
/* For password input, we mask it out */
81
prom_puts((password) ? "*" : buff + x, 1);
84
if (x == 1 && !password && useconf) {
85
if (cfg_get_flag (cbuff, "single-key"))