|
|
@ -208,9 +208,12 @@ die(const char *errstr, ...) { |
|
|
|
|
|
|
|
|
|
|
|
void |
|
|
|
void |
|
|
|
execsh(void) { |
|
|
|
execsh(void) { |
|
|
|
char *args[3] = {SHELL, "-i", NULL}; |
|
|
|
char *shell = getenv("SHELL"); |
|
|
|
|
|
|
|
if(!shell) |
|
|
|
|
|
|
|
shell = "/bin/sh"; |
|
|
|
|
|
|
|
char *args[3] = {shell, "-i", NULL}; |
|
|
|
putenv("TERM=" TNAME); |
|
|
|
putenv("TERM=" TNAME); |
|
|
|
execvp(SHELL, args); |
|
|
|
execvp(shell, args); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void |
|
|
|
void |
|
|
@ -844,7 +847,6 @@ tputtab(void) { |
|
|
|
|
|
|
|
|
|
|
|
void |
|
|
|
void |
|
|
|
tputc(char c) { |
|
|
|
tputc(char c) { |
|
|
|
/* dump(c); */ |
|
|
|
|
|
|
|
if(term.esc & ESC_START) { |
|
|
|
if(term.esc & ESC_START) { |
|
|
|
if(term.esc & ESC_CSI) { |
|
|
|
if(term.esc & ESC_CSI) { |
|
|
|
escseq.buf[escseq.len++] = c; |
|
|
|
escseq.buf[escseq.len++] = c; |
|
|
|