1
0
mirror of https://github.com/open-simh/simh.git synced 2026-05-05 23:54:03 +00:00

Added sim_ttisatty to support reasonable behaviour (i.e. avoid in infinite loop) in the main command input loop when EOF is detected and input is coming from a file (or a null device: /dev/null or NUL:) This may happen when a simulator is running in a background process.

This commit is contained in:
Mark Pizzolato
2011-12-07 10:01:07 -08:00
parent de5997608d
commit 01369c13da
3 changed files with 43 additions and 2 deletions

View File

@@ -83,6 +83,7 @@ t_stat sim_ttinit (void);
t_stat sim_ttrun (void);
t_stat sim_ttcmd (void);
t_stat sim_ttclose (void);
t_bool sim_ttisatty(void);
t_stat sim_os_poll_kbd (void);
t_stat sim_os_putchar (int32 out);
int32 sim_tt_inpcvt (int32 c, uint32 mode);