Bug 496326 - Ctrl-Z pressed after 'stty -echoctl' causes the NULL UNICODE character to be printed instead of nothing
Summary: Ctrl-Z pressed after 'stty -echoctl' causes the NULL UNICODE character to be ...
Status: REPORTED
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: 23.08.5
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-11-15 23:05 UTC by Yuri
Modified: 2024-11-15 23:05 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yuri 2024-11-15 23:05:06 UTC
SUMMARY
I am handling the SIGTSTP signal and hiding the ^Z printout using this script:
$ cat sig.sh 
#!/usr/bin/env bash

# SIGTSTP
trap '' 20
stty -echoctl

echo "before"
sleep 3
echo "middle"
sleep 3
echo "after"

When Ctrl-Z is pressed, konsole emits the visible NULL character with the UTF8 encoding e2 96 92.
The expected outcome is to ignore Ctrl-Z.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: konsole-23.08.5
Qt Version: 5.15.17