-
Notifications
You must be signed in to change notification settings - Fork 77
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
Using Haskeline with a PseudoTerminal #147
Comments
I would very much like to see pseudo terminal support. My use case is in an embedded system where a daemon needs to open and service pseudo terminals and serial terminals. |
@NorfairKing , if you have a branch of your work pushed somewhere I would love to look at it. Also, did you manage the TERM environment variable at all? I wonder if this contributed to some of your problems. I am thinking of a top level lib function like the one below that lets you provide input handle, output handle, and Maybe a terminal type. If Nothing is specified for term type then the environment is queried as usual. When using something besides the controlling terminal it will be common to not have the client's TERM variable available so it will need to be provided manually. useTermHandles :: Handle -> Handle -> Maybe String -> Behavior |
I'd like to use
haskeline
for a browser-based terminal interface.(See
smos.online
.)I got something hacky working like this:
However, pressing the up arrow key doesn't show me the history but a control sequence instead.
I've also tried to write this:
and then the history works but the input is no longer echoed, even with
hSetExcho inh
andhSetBuffering inh NoBuffering
.Is this a use-case that you would like to support?
The text was updated successfully, but these errors were encountered: