more self-recover prompting cleanup (tty)

This commit is contained in:
nhmall
2019-12-04 13:10:12 -05:00
parent ea2b8a90ee
commit 4868f83db1
3 changed files with 17 additions and 1 deletions

View File

@@ -114,6 +114,8 @@ int optn;
safe_procs.win_raw_print_bold = stdio_raw_print_bold;
safe_procs.win_nhgetch = stdio_nhgetch;
safe_procs.win_wait_synch = stdio_wait_synch;
if (optn == 2)
safe_procs.win_raw_print = stdio_nonl_raw_print;
}
return &safe_procs;
}
@@ -536,6 +538,17 @@ stdio_wait_synch()
void
stdio_raw_print(str)
const char *str;
{
if (str)
fprintf(stdout, "%s\n", str);
return;
}
/* no newline variation, add to your code:
windowprocs.win_raw_print = stdio_nonl_raw_print; */
void
stdio_nonl_raw_print(str)
const char *str;
{
if (str)
fprintf(stdout, "%s", str);