From 01f6c5ec53c2e545a089fc3c885bd5584c5e6821 Mon Sep 17 00:00:00 2001 From: Kevin Lange Date: Wed, 12 Sep 2012 17:40:49 -0700 Subject: Support the Suckless simple terminal `st` supports xterm-256color escapes, so just treat it the same as we treat xterm. --- src/nyancat.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/nyancat.c b/src/nyancat.c index 67820ef..d6eb4e4 100644 --- a/src/nyancat.c +++ b/src/nyancat.c @@ -549,6 +549,8 @@ int main(int argc, char ** argv) { ttype = 3; /* Accepts LINUX mode */ } else if (strstr(term, "vt100") && terminal_width == 40) { ttype = 7; /* No color support, only 40 columns */ + } else if (!strncmp(term, "st", 2)) { + ttype = 1; /* suckless simple terminal is xterm-256color-compatible */ } else { ttype = 2; /* Everything else */ } -- cgit v1.2.3