summaryrefslogtreecommitdiffstats
path: root/CRT.c
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2014-02-27 16:35:22 -0300
committerHisham Muhammad <hisham@gobolinux.org>2014-02-27 16:35:22 -0300
commit6d90e58c01c606841753fb23b4effe3d815223cd (patch)
tree99153968af5251fdfbf534e1fc5b8e606f652c67 /CRT.c
parent953ec71235f51934014f025ea113e788238e2e24 (diff)
alignment improvements
Diffstat (limited to 'CRT.c')
-rw-r--r--CRT.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/CRT.c b/CRT.c
index 6ddd8d91..60eeea11 100644
--- a/CRT.c
+++ b/CRT.c
@@ -123,6 +123,8 @@ int CRT_colors[LAST_COLORELEMENT] = { 0 };
int CRT_cursorX = 0;
+int CRT_scrollHAmount = 5;
+
char* CRT_termType;
void *backtraceArray[128];
@@ -173,6 +175,10 @@ void CRT_init(int delay, int colorScheme) {
CRT_hasColors = false;
}
CRT_termType = getenv("TERM");
+ if (String_eq(CRT_termType, "linux"))
+ CRT_scrollHAmount = 20;
+ else
+ CRT_scrollHAmount = 5;
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);

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