From: David Griffith Date: Tue, 10 Jan 2017 12:36:10 +0000 (-0800) Subject: Possible incorrect use of print_string() in os_reset_screen(). X-Git-Url: https://scope-eye.net/git/?a=commitdiff_plain;h=a7b6e8f7fc85298707d448d2848ffce714fb47e1;p=liskon_frotz.git Possible incorrect use of print_string() in os_reset_screen(). If print_string() and probably by extension print_char() are used before the Z-machine is running, a few random garbage characters are printed instead of the intended text. I'm not clear why this happens. --- diff --git a/src/curses/ux_init.c b/src/curses/ux_init.c index ffd7158..257b547 100644 --- a/src/curses/ux_init.c +++ b/src/curses/ux_init.c @@ -509,7 +509,7 @@ void os_reset_screen (void) { os_stop_sample(0); os_set_text_style(0); - print_string("[Hit any key to exit.]\n"); + os_display_string((zchar *)"[Hit any key to exit.]\n"); os_read_key(0, FALSE); scrollok(stdscr, TRUE); scroll(stdscr); refresh(); endwin();