X-Git-Url: https://git.xinqibao.xyz/st.git/blobdiff_plain/cb2e0e9c31a510cd6cdbbd3b0da231157a975d95..6c0a1eff2fb2419b9bbfb545d0cf21a2e524efb2:/st.c diff --git a/st.c b/st.c index 3b7eb78..741e680 100644 --- a/st.c +++ b/st.c @@ -709,7 +709,7 @@ execsh(void) { char **args; char *envshell = getenv("SHELL"); - DEFAULT(envshell, "sh"); + DEFAULT(envshell, SHELL); putenv("TERM="TNAME); args = opt_cmd ? opt_cmd : (char*[]){envshell, "-i", NULL}; execvp(args[0], args); @@ -1388,7 +1388,7 @@ csihandle(void) { void csidump(void) { int i; - fwrite("ESC[", 1, 4, stdout); + printf("ESC["); for(i = 0; i < escseq.len; i++) { uint c = escseq.buf[i] & 0xff; if(isprint(c)) putchar(c);