Minor fix in 1998/chaos - restore terminal at exit

The problem with not calling 'endwin()' is that echo will be disabled
which is a problem for the user if they don't know to type stty echo or
reset or stty sane.
This commit is contained in:
Cody Boone Ferguson committed 2023-03-24 09:41:25 -07:00
1 parent b6635064ea
commit 3753b22365
2 files changed
+4 -1

No files matched your search

+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();