Sfoglia il codice sorgente

restore posix name getch()

richarddobson 1 mese fa
parent
commit
3a56178efc
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      dev/new/newtex.c

+ 1 - 1
dev/new/newtex.c

@@ -1254,7 +1254,7 @@ int usage2(char *str)
         "\n"
         "Hit key 's' to continue to \"SPACETYPE\" information, or 'e' to exit.\n");
 
-        while((k = _getch())!='s' && k != 'e')
+        while((k = getch())!='s' && k != 'e')
             ;
         if(k == 's') {
             fprintf(stderr,