summaryrefslogtreecommitdiffhomepage
path: root/Pty.hs
Commit message (Collapse)AuthorAge
* --replay: make Space advance to next outputJoey Hess2017-05-04
| | | | This commit was sponsored by John Peloquin on Patreon.
* add license headers to all source filesJoey Hess2017-04-30
|
* working toward getting developer mode connection to server workingJoey Hess2017-04-21
|
* commentJoey Hess2017-04-13
|
* copy terminal attrs to the ptyJoey Hess2017-04-13
| | | | | | | | | | | This fixes the control-d issue, and many more besides. See https://github.com/merijn/posix-pty/issues/11 Also though, it means that if the user has set some unusual stty value, it gets copied into the pty. We want this in debug-me, because it ought to replicate the environment it's run in as well as possible. This commit was sponsored by Thomas Hochstein on Patreon.
* use posix-pty, and forward SIGWINCHJoey Hess2017-04-13
| | | | | | | | | | | | | | | | I discovered the posix-pty library while looking for a way to forward SIGWINCH to the slave pty. It's taken care of a lot of nasty pty handling details, so let's use it! Unfortunately, this broke control-d exiting debug-me, which used to work great. I think that the problem is that readPty never returns B.empty, even on control-d. Or perhaps, posix-pty is doing something to the pty that prevents control-d getting through. I kept all the withoutMode code; at least withoutMode EnableEcho is still needed. This commit was sponsored by Jochen Bartl on Patreon.
* debug-me is able to run a shell in a slave ptyJoey Hess2017-04-11
Lots of terminal mode fun. Has a few warts still, but it works well enough to be comfortable, and even vim works ok. This commit was sponsored by John Peloquin on Patreon.