Closed remy-luisant closed 3 years ago
I think this is a bug. Can you try calling backup_termios()
before enable_raw_mode()
?
This appears to fix the problem.
I’m guessing you aren’t calling initialize
: https://github.com/kdheepak/TerminalUserInterfaces.jl/blob/9d55682a1c9ce67f2af292518f7b0cd3aa2efefd/src/utils.jl#L202
No, I'm using just the one call to enable raw mode, since all I wanted to get is keyboard control. initialize() would clear the screen, hide the cursor, etc...
Got it. I’ll have to add a __init__
to the package and call backup_termios
there.
I've made a new release too.
This could be a case of me misusing the library, but enable_raw_mode() works just fine and lets me get the work done. It does not seem like I can disable it, however.