diff options
| author | Murray Stokely <murray@FreeBSD.org> | 2001-09-25 00:28:26 +0000 |
|---|---|---|
| committer | Murray Stokely <murray@FreeBSD.org> | 2001-09-25 00:28:26 +0000 |
| commit | f784e0d13735d0504657022bbfa238d2e7197e7c (patch) | |
| tree | b6fd200043952513bb10bcbc4cb7f3a75b82cbb0 /usr.sbin | |
| parent | 1782e17d6f69cbd043d9d6d40983f2158c6b0d52 (diff) | |
Notes
Diffstat (limited to 'usr.sbin')
| -rw-r--r-- | usr.sbin/sysinstall/options.c | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/usr.sbin/sysinstall/options.c b/usr.sbin/sysinstall/options.c index b085092cc6ca..bf822391a601 100644 --- a/usr.sbin/sysinstall/options.c +++ b/usr.sbin/sysinstall/options.c @@ -40,7 +40,6 @@ #include <term.h> int fixitTtyWhich(dialogMenuItem *); -int termSetType(dialogMenuItem *); static char * varCheck(Option opt) @@ -127,8 +126,6 @@ static Option Options[] = { OPT_IS_FUNC, mediaSetFTPUserPass, VAR_FTP_USER, varCheck }, { "Editor", "Which text editor to use during installation", OPT_IS_VAR, EDITOR_PROMPT, VAR_EDITOR, varCheck }, -{ "Terminal", "Set terminal type (TERMCAP)", - OPT_IS_FUNC, termSetType, VAR_TERM, varCheck }, { "Tape Blocksize", "Tape media block size in 512 byte blocks", OPT_IS_VAR, TAPE_PROMPT, VAR_TAPE_BLOCKSIZE, varCheck }, { "Extract Detail", "How verbosely to display file name information during extractions", @@ -338,32 +335,3 @@ fixitTtyWhich(dialogMenuItem *self) } return DITEM_SUCCESS; } - -/* Select terminal type */ -int -termSetType(dialogMenuItem *self) -{ - char *cp = variable_get(VAR_TERM); - - if (!cp) { - msgConfirm("TERMCAP is not set to anything!"); - return DITEM_FAILURE; - } - else { - if (!strcmp(cp, "ansi")) - variable_set2(VAR_TERM, "vt100", 0); - else if (!strcmp(cp, "vt100")) - variable_set2(VAR_TERM, "cons25w", 0); - else if (!strcmp(cp, "cons25w")) - variable_set2(VAR_TERM, "cons25", 0); - else if (!strcmp(cp, "cons25")) - variable_set2(VAR_TERM, "cons25-m", 0); - else if (!strcmp(cp, "cons25-m")) - variable_set2(VAR_TERM, "xterm", 0); - else /* must be "high" - wrap around */ - variable_set2(VAR_TERM, "ansi", 0); - } - - setterm (cp); - return DITEM_SUCCESS; -} |
