Introduction
Introduction Statistics Contact Development Disclaimer Help
resettitle even if there was no succesful initialization setting `needcleanup` …
git clone git://git.codemadness.org/sfeed_curses
Log
Files
Refs
README
LICENSE
---
commit c94a5e5e01d617d1f1c2f08058df832148c4adc9
parent e37cbef2ec362a29ea79ece4e88bd4a65e8c1145
Author: Hiltjo Posthuma <[email protected]>
Date: Sat, 20 Mar 2021 12:53:28 +0100
resettitle even if there was no succesful initialization setting `needcleanup`
This makes sure to reset the terminal state and/or title when it calls die()
inside init() or before.
Diffstat:
M sfeed_curses.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/sfeed_curses.c b/sfeed_curses.c
@@ -586,6 +586,8 @@ cleanup(void)
{
struct sigaction sa;
+ resettitle();
+
if (!needcleanup)
return;
@@ -600,8 +602,6 @@ cleanup(void)
if (usemouse)
mousemode(0);
- resettitle();
-
memset(&sa, 0, sizeof(sa));
sigemptyset(&sa.sa_mask);
sa.sa_flags = SA_RESTART; /* require BSD signal semantics */
You are viewing proxied material from codemadness.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.