From f3b1c84a29e272cc589c300bca5020ccd4685a02 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Mon, 26 Oct 2026 20:02:16 +0100 Subject: terminal: fix signal handling state restore --- ttwhy/terminal/signal_handling.cppm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ttwhy/terminal/signal_handling.cppm') diff --git a/ttwhy/terminal/signal_handling.cppm b/ttwhy/terminal/signal_handling.cppm index b0a3542..2921b96 100644 --- a/ttwhy/terminal/signal_handling.cppm +++ b/ttwhy/terminal/signal_handling.cppm @@ -49,13 +49,14 @@ namespace ttwhy::terminal } case SIGTSTP: { + attributes.suspend(); attributes.canonical_mode(true).echo(true); ::raise(SIGSTOP); break; } case SIGCONT: { - attributes.canonical_mode(false).echo(false); + attributes.resume(); break; } } -- cgit v1.2.3