summaryrefslogtreecommitdiffstats
path: root/CRT.c
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2006-07-23 22:45:24 +0000
committerHisham Muhammad <hisham@gobolinux.org>2006-07-23 22:45:24 +0000
commit2ecf199cf70d24e1ac359640c21cc79a81b68461 (patch)
tree649cb393525772a260525fd58c33fa8d359ad624 /CRT.c
parenteb2803ce79604b45c070edbe1e787f4373949cfe (diff)
Horizontally scroll in larger increments when on the
Linux console because of slow update of unaccelerated fb
Diffstat (limited to 'CRT.c')
-rw-r--r--CRT.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/CRT.c b/CRT.c
index 836c75ee..9c283c9b 100644
--- a/CRT.c
+++ b/CRT.c
@@ -106,6 +106,8 @@ int CRT_colorScheme = 0;
int CRT_colors[LAST_COLORELEMENT] = { 0 };
+char* CRT_termType;
+
// TODO: pass an instance of Settings instead.
void CRT_init(int delay, int colorScheme) {
@@ -124,8 +126,8 @@ void CRT_init(int delay, int colorScheme) {
} else {
CRT_hasColors = false;
}
- char* termType = getenv("TERM");
- if (String_eq(termType, "xterm") || String_eq(termType, "xterm-color") || String_eq(termType, "vt220")) {
+ CRT_termType = getenv("TERM");
+ if (String_eq(CRT_termType, "xterm") || String_eq(CRT_termType, "xterm-color") || String_eq(CRT_termType, "vt220")) {
define_key("\033[H", KEY_HOME);
define_key("\033[F", KEY_END);
define_key("\033OP", KEY_F(1));

© 2014-2024 Faster IT GmbH | imprint | privacy policy