Skip to content
Snippets Groups Projects
Commit 7924d4da authored by rswindell's avatar rswindell
Browse files

Eliminate use of getch(), using getchar() only, for error conditions.

parent d7916950
No related branches found
No related tags found
No related merge requests found
...@@ -36,7 +36,6 @@ ...@@ -36,7 +36,6 @@
****************************************************************************/ ****************************************************************************/
#include "scfg.h" #include "scfg.h"
#include "conwrap.h" /* getch() */
/********************/ /********************/
/* Global Variables */ /* Global Variables */
...@@ -1904,8 +1903,9 @@ int lprintf(char *fmt, ...) ...@@ -1904,8 +1903,9 @@ int lprintf(char *fmt, ...)
void bail(int code) void bail(int code)
{ {
if(code) { if(code) {
puts("\nHit a key..."); printf("\nHit enter to continue...");
getch(); } getchar();
}
else if(forcesave) { else if(forcesave) {
uifc.pop("Loading Configs..."); uifc.pop("Loading Configs...");
read_main_cfg(&cfg,error); read_main_cfg(&cfg,error);
...@@ -1979,8 +1979,8 @@ void errormsg(int line, char *source, char action, char *object, ulong access) ...@@ -1979,8 +1979,8 @@ void errormsg(int line, char *source, char action, char *object, ulong access)
printf(" action: %s\n",actstr); printf(" action: %s\n",actstr);
printf(" object: %s\n",object); printf(" object: %s\n",object);
printf(" access: %ld (%lx)\n",access,access); printf(" access: %ld (%lx)\n",access,access);
puts("\r\n<Hit any key>"); printf("\nHit enter to continue...");
getch(); getchar();
#if !defined(__unix__) #if !defined(__unix__)
puttext(1,1,80,uifc.scrn_len,scrn_buf); puttext(1,1,80,uifc.scrn_len,scrn_buf);
#endif #endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment