Skip to content
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

[Feature request] implement openpty mode. #1015

Open
xu-chiheng opened this issue Dec 2, 2022 · 0 comments
Open

[Feature request] implement openpty mode. #1015

xu-chiheng opened this issue Dec 2, 2022 · 0 comments

Comments

@xu-chiheng
Copy link

implement openpty mode.
do not create child process, instead, open a pty, and output the slave name of pty device.
used in gdb debugging.
utilize this gdb command line option:
--tty=TTY Use TTY for input/output by the program being debugged.

$ qterminal --openpty
/dev/pty1

echo hello >/dev/pty1

gdb --tty=/dev/pty1 emacs
run

mintty implementation
https://github.com/xu-chiheng/mintty/commit/f0e80e1876502a83c8e5d1b5c24a4c714a0b0e18
konsole implemention on v4.9.4
https://github.com/xu-chiheng/konsole/commit/f7b94b0756101239279630d06309128d508aaf4f

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants