1
0
Fork 0

esc exits

This commit is contained in:
me 2023-03-13 18:46:50 +03:30
parent 11d87562f9
commit b7530749f7
2 changed files with 5 additions and 3 deletions

View File

@ -130,8 +130,7 @@ Windows
* Tell me your feature requests, bug reports, etc. * Tell me your feature requests, bug reports, etc.
* Tell me the games you want to be added (but in the same genre, I can't port Angry Birds to curses! :) * Tell me the games you want to be added (but in the same genre, I can't port Angry Birds to curses! :)
* Make a package for your distro (or put it on repos if the package is not there) * Make a package for your distro (or put it on repos if the package is not there)
* Getting it to Redhat and OpenBSD repos would be nice.
* Tell distro developers to consider adding these as default games, nbsdgames packs a lot of fun games in a few hundreds of kilobytes. * Tell distro developers to consider adding these as default games, nbsdgames packs a lot of fun games in a few hundreds of kilobytes.
* Compile these with ASAN, play and find C-ish bugs.
Also thanks to all the people who helped in the previous versions, all what I requested was done! I didn't expect such an amount of assistance on this project :heart: Also thanks to all the people who helped in the previous versions, all what I requested was done! I didn't expect such an amount of assistance on this project :heart:

View File

@ -395,9 +395,12 @@ int main(int argc,char** argv){
} }
} }
if(input=='Q'){ if(input=='Q'){
strcpy(msg,"Ctrl-C to quit."); strcpy(msg,"ESC or Ctrl-C to quit.");
msg_show=50; msg_show=50;
} }
if(input==27){
break;
}
if(input!=ERR){ if(input!=ERR){
usleep(100000); usleep(100000);
flushinp(); flushinp();