From ef9bea6d601742b8e91eda59b914f8653463ef24 Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Fri, 7 Feb 2020 22:25:09 -0500 Subject: Use atexit instead of err_set_exit Unsurprisingly, err_set_exit doesn't exist in GNU's err.h, but since it's safe to call reset_shell_mode on any kind of exit, just use atexit. --- ui.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ui.c b/ui.c index 5a8f155..d9b067b 100644 --- a/ui.c +++ b/ui.c @@ -176,8 +176,7 @@ static void disableFlowControl(void) { if (error) err(EX_OSERR, "tcsetattr"); } -static void errExit(int eval) { - (void)eval; +static void errExit(void) { reset_shell_mode(); } @@ -211,7 +210,7 @@ void uiInit(void) { noecho(); disableFlowControl(); def_prog_mode(); - err_set_exit(errExit); + atexit(errExit); if (!to_status_line && !strncmp(termname(), "xterm", 5)) { to_status_line = "\33]2;"; -- cgit 1.4.1 mmary refs log tree commit diff
path: root/www/photo.causal.agency/2024-06-25/000099820005.txt (unfollow)
Commit message (Expand)Author
2026-02-17Remove photo metadata directories HEAD masterJune McEnroe
2026-02-17Ignore photo metadataJune McEnroe
2026-02-16Populate films datalist with 20 most recently usedJune McEnroe
2026-02-16Select last used bodyJune McEnroe
2026-02-15Don't break on trip with removed bodyJune McEnroe
2026-02-11Keep manpath.conf sortedJune McEnroe26 22:04:17 -0400'>2022-07-26Rewrite glitch from new pngoJune McEnroe
2022-07-26Update Care with time-to-ID and piercingsJune McEnroe
2022-07-26Add -w to upJune McEnroe
2022-07-13Set push.autoSetupRemoteJune McEnroe
2022-07-08Remove TOURJune McEnroe
There is not that much distinct stuff here anymore.
2022-07-03Add The Bone Shard EmperorJune McEnroe
Suffers a little bit from middle book but I really enjoyed it. Read it faster than the first one too, despite its length.
2022-06-25Bump xterm font size to 12June McEnroe
2022-06-10Handle subshells (and functions) inside substitutionsJune McEnroe
2022-06-10Switch to jorts Install scriptJune McEnroe
2022-06-08Indicate if still reading or no resultsJune McEnroe
2022-06-08Add Maiden, Mother, CroneJune McEnroe
Mixed bag like most collections of short stories. Some of them are pretty good. The author of the worst written story also has the worst written bio.
2022-06-05FIRST SHOW IN 2.5 YEARS BABEY!!!June McEnroe
2022-06-03Set line number on File linesJune McEnroe
2022-06-03Stop polling stdin after EOFJune McEnroe
2022-06-02Set TABSIZE=4June McEnroe
Absolutely indiscriminately.
2022-06-02Do basic match highlightingJune McEnroe
2022-06-02Clean up parsing a littleJune McEnroe
2022-06-02Don't duplicate path stringJune McEnroe
2022-06-02Use stderr instead of /dev/tty, realloc buffer if lines too longJune McEnroe
For some reason I haven't been able to figure out, trying to poll /dev/tty returns POLLNVAL (and this was using 100% CPU looping), but using stderr instead works fine.
2022-06-02Add initial working version of qfJune McEnroe
2022-05-29Set prompt for okshJune McEnroe