diff options
| author | Felix Morgner <felix.morgner@gmail.com> | 2026-10-26 20:02:16 +0100 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@gmail.com> | 2026-10-26 20:02:16 +0100 |
| commit | f3b1c84a29e272cc589c300bca5020ccd4685a02 (patch) | |
| tree | abe08cad4277c76a799e98f7f66cf866580ae31f /ttwhy/terminal/signal_handling.cppm | |
| parent | 1adf2896e3606ecb03785f96af786d891e564ed1 (diff) | |
| download | ttwhy-f3b1c84a29e272cc589c300bca5020ccd4685a02.tar.xz ttwhy-f3b1c84a29e272cc589c300bca5020ccd4685a02.zip | |
terminal: fix signal handling state restore
Diffstat (limited to 'ttwhy/terminal/signal_handling.cppm')
| -rw-r--r-- | ttwhy/terminal/signal_handling.cppm | 3 |
1 files changed, 2 insertions, 1 deletions
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; } } |
