Bug 496326

Summary: Ctrl-Z pressed after 'stty -echoctl' causes the NULL UNICODE character to be printed instead of nothing
Product: [Applications] konsole Reporter: Yuri <yuri>
Component: generalAssignee: Konsole Developer <konsole-devel>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version: 23.08.5   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

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