diff options
author | netchild <netchild@FreeBSD.org> | 2006-08-09 09:12:01 +0000 |
---|---|---|
committer | netchild <netchild@FreeBSD.org> | 2006-08-09 09:12:01 +0000 |
commit | 2c46c25111df187d4bde90dc5e08843df8d53980 (patch) | |
tree | 95187cf3258bf20579db88b330913113c7be2126 /usr.sbin/sade/system.c | |
parent | d17b3a74018dcee4f389b55209e93ddf6ab073b3 (diff) | |
download | FreeBSD-src-2c46c25111df187d4bde90dc5e08843df8d53980.zip FreeBSD-src-2c46c25111df187d4bde90dc5e08843df8d53980.tar.gz |
Get rid of the rtermcap stuff (embedding termcaps into the program). This
is needed in sysinstall on boot, but not in sade on a fully working system.
After this change I noticed no change in behavior on a vty when TERM is not
set.
Diffstat (limited to 'usr.sbin/sade/system.c')
-rw-r--r-- | usr.sbin/sade/system.c | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/usr.sbin/sade/system.c b/usr.sbin/sade/system.c index f421123..df6cf32 100644 --- a/usr.sbin/sade/system.c +++ b/usr.sbin/sade/system.c @@ -242,33 +242,6 @@ systemHelpFile(char *file, char *buf) return NULL; } -void -systemChangeTerminal(char *color, const u_char c_term[], - char *mono, const u_char m_term[]) -{ - if (OnVTY) { - int setupterm(char *color, int, int *); - - if (ColorDisplay) { - setenv("TERM", color, 1); - setenv("TERMCAP", c_term, 1); - reset_shell_mode(); - setterm(color); - cbreak(); noecho(); - } - else { - setenv("TERM", mono, 1); - setenv("TERMCAP", m_term, 1); - reset_shell_mode(); - setterm(mono); - cbreak(); noecho(); - } - } - clear(); - refresh(); - dialog_clear(); -} - int vsystem(const char *fmt, ...) { |