genotrance / snip

snip is text editor to speed up testing code snippets
MIT License
28 stars 2 forks source link

Ctrl-Z suspends snip but leaves screen in a mess #13

Open genotrance opened 6 years ago

genotrance commented 6 years ago

https://forum.nim-lang.org/t/3957#24762

@bevo009

genotrance commented 6 years ago

Probably need to do what ncurses does - intercept SIGTSTP, clear screen, disable handler and then raise SIGTSTP.

When SIGCONT comes, setup SIGTSTP again.

https://nim-lang.org/docs/posix.html#SIGTSTP