oyvindberg/tui-scala

Reset canonical terminal after finishing the program.

Closed this issue · 2 comments

If a program finishes, then the terminal keeps staying in the Raw mode.

Would be nice to put it back into the canonical state.

Useful link: https://viewsourcecode.org/snaptoken/kilo/02.enteringRawMode.html

Oh wait, I guess I can do that already by myself.

Yes, you already do that: https://github.com/oyvindberg/tui-scala/blob/master/tui/src/scala/tui/withTerminal.scala#L19

For some reason does not work for me, but likely the issue on my side.

Appreciate the repo!