cosmos72 / twin

Text mode window environment. A "retro" program for embedded or remote systems, that doubles as X11 terminal and text-mode equivalent of VNC server
Other
661 stars 39 forks source link

Update hw_tty.c: for issue #44 (hw_tty without gpm: QUITTING without terminal being reset) #51

Closed AlCastilloBa closed 5 years ago

AlCastilloBa commented 5 years ago

I am trying to solve the issue #44 (hw_tty without gpm: QUITTING without terminal being reset #44).

Just in case mouse support is not enabled, and user does not confirm to use the program without mouse, the server appears to end leaving the terminal in "raw mode", not "canonical mode". This modification adds a line to restore the tty original status only for hw_tty, and only for this case.

Edited file: "twin / server / hw / hw_tty.c" Added "tty_setioctl(tty_fd, &tty_save)" on line 576.

cosmos72 commented 5 years ago

thanks, that's the right spot. I wrote a more thorough fix in commit fc647fe0c1e196b6b60b914ab941cf67ae0b9a1c