alignment improvements

This commit is contained in:
Hisham Muhammad
2014-02-27 16:35:22 -03:00
parent 953ec71235
commit 6d90e58c01
19 changed files with 184 additions and 127 deletions

6
CRT.c
View File

@ -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);