Open Windwoes opened 3 years ago
You has tried use the enter/exit privateMode in Terminal?
Not sure if this is still relevant, but you can look at some of the tests (src/test/java/... in the lanterna sources) for how they do it to restore tty-state to normal - maybe you need some "try ... finally ..." to make sure the cleanup still gets called even after an exception...
This looks like a really cool library, but there seems to be a bug with the screen API, where after calling
stopScreen()
, the terminal will not echo characters as they are typed.Here is the code I am testing with. I am using GNOME Terminal on Ubuntu 16.04 with v3.1.1 of the library. To reproduce, simply run the JAR from the command line, then attempt to type something in the terminal after it exits.