X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=st.c;h=379dd108678b3c89f166510855ffd7c30d68844b;hb=4e0135afeca43f5affe13d7269cb98e7ac526074;hp=a51d19c61b1210bd35a482a8a05002961ef100cd;hpb=b4d68d4daa2716c0064605a2a92082a7287ee54a;p=st.git diff --git a/st.c b/st.c index a51d19c..379dd10 100644 --- a/st.c +++ b/st.c @@ -731,8 +731,10 @@ sigchld(int a) if (pid != p) return; - if (!WIFEXITED(stat) || WEXITSTATUS(stat)) - die("child finished with error '%d'\n", stat); + if (WIFEXITED(stat) && WEXITSTATUS(stat)) + die("child exited with status %d\n", WEXITSTATUS(stat)); + else if (WIFSIGNALED(stat)) + die("child terminated due to signal %d\n", WTERMSIG(stat)); exit(0); } @@ -2333,7 +2335,6 @@ tputc(Rune u) goto check_control_code; } - if (IS_SET(MODE_SIXEL)) { /* TODO: implement sixel mode */ return; @@ -2592,6 +2593,7 @@ draw(void) term.ocx, term.ocy, term.line[term.ocy][term.ocx]); term.ocx = cx, term.ocy = term.c.y; xfinishdraw(); + xximspot(term.ocx, term.ocy); } void