commit a4cbdb093f9a351ae6213bdbe66fdd45331b14fe
parent 85304b9c94a0e1a5b25bcb82c836b0a0a855f749
Author: Rafael Garcia <rafael.garcia.gallego@gmail.com>
Date: Sun, 12 Jun 2011 10:58:34 +0200
Default to "xterm" if $TERM not recognized.
Diffstat:
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/sandy.c b/sandy.c
@@ -1181,7 +1181,10 @@ i_setup(void){
regcomp(find_res[0], "\0\0", 0); /* This should not match anything */
regcomp(find_res[1], "\0\0", 0);
- newterm(NULL, stderr, stdin);
+ if(!newterm(NULL, stderr, stdin)) {
+ newterm("xterm", stderr, stdin);
+ tmptitle="WARNING! $TERM not recognized!!!";
+ }
if(has_colors()) {
start_color();
use_default_colors();