Support the Suckless simple terminal

`st` supports xterm-256color escapes, so just treat
it the same as we treat xterm.
This commit is contained in:
Kevin Lange 2012-09-12 17:40:49 -07:00 committed by Kevin Lange
parent c035cf7f9b
commit 01f6c5ec53

View File

@ -549,6 +549,8 @@ int main(int argc, char ** argv) {
ttype = 3; /* Accepts LINUX mode */ ttype = 3; /* Accepts LINUX mode */
} else if (strstr(term, "vt100") && terminal_width == 40) { } else if (strstr(term, "vt100") && terminal_width == 40) {
ttype = 7; /* No color support, only 40 columns */ ttype = 7; /* No color support, only 40 columns */
} else if (!strncmp(term, "st", 2)) {
ttype = 1; /* suckless simple terminal is xterm-256color-compatible */
} else { } else {
ttype = 2; /* Everything else */ ttype = 2; /* Everything else */
} }