Support 256color (and assume 256color terminal). Closes #3 github issue.

This commit is contained in:
Keith Winstein
2012-03-16 04:40:18 -04:00
parent bdcdad7081
commit 57d97209c0
5 changed files with 63 additions and 10 deletions
+1 -1
View File
@@ -182,7 +182,7 @@ int run_server( const char *desired_ip, const char *desired_port ) {
fatal_assert( sigprocmask( SIG_SETMASK, &signals_to_block, NULL ) == 0 );
/* set TERM */
if ( setenv( "TERM", "xterm", true ) < 0 ) {
if ( setenv( "TERM", "xterm-256color", true ) < 0 ) {
perror( "setenv" );
exit( 1 );
}