Merge pull request #140 from xexyl/1998-chaos

Minor fix in 1998/chaos - restore terminal at exit
This commit is contained in:
Landon Curt Noll authored and GitHub committed 2023-03-24 15:57:53 -07:00
commit c05d123485
2 files changed
+4 -1

No files matched your search

+3
View File
@@ -18,6 +18,9 @@ Or you can build this entry without the `halfdelay()` call by:
make chaos_nohalf
[Cody Boone Ferguson](/winners.html#Cody_Boone_Ferguson) added a call to
`endwin()` to restore terminal sanity (echo etc.) when exiting the program.
Thank you Cody for your assistance!
## To run:
+1 -1
View File
@@ -48,7 +48,7 @@ A main(A N,char ** Y) {
_('u',-,2,0,1)
_('i',-,1,0,2)
G += M=='a'?-.1:M=='z'?.1:0;
if(M=='q') { printf("%.9s\n",P); exit(0); }
if(M=='q') { printf("%.9s\n",P); endwin(); exit(0); }
memset(Q,0,3792);
erase();