-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nice tool! / Ctrl+Z not working / Exit code and window resizes not forwarded #1
Comments
Hi, @hartwork, window resize and exit code should be fixed. But I don't have a simple fix for Ctrl-Z, see go-delve/delve#2157 . |
@qingyunha wow, that was quick! Regarding Ctrl+Z I already found out that the pty needs to be put in "isim" mode but just catching the signal and sending import subprocess
subprocess.check_call(['stty', 'isig'])
def handle_sigtstp(*args, **kwargs):
print('got SIGTSTP')
signal.signal(signal.SIGTSTP, handle_sigtstp) Regarding go-delve/delve#2157 — what in there did you intend to point me to, specifically? |
It seems using |
@qingyunha I'm not sure I understand. When running a Bash shell, launching htop and pressing Ctrl+Z the htop "window" disappears, Bash says something like |
You can try |
@qingyunha when I run
|
We should reset/restory the tty status before C-Z and fg. I update the branch but it still not work very well. |
Hi @qingyunha,
very nice tool! I tried…
python3 -m ppty -- htop
python3 -m ppty -- sh -c 'exit 123' ; echo $?
…and learned that…
SIGWINCH
) are not forwarded to htop, and thatWould you be interested in fixing these issues?
The text was updated successfully, but these errors were encountered: