/* Minimal termios.h for Hercules under VMS. The terminal functions are only barely used as originally intended. tcgetattr is used to fetch the terminal wrap setting for later restoration and tcsetattr is used to turn it off in order that the control panel does not end up scrolling up the screen after every instruction count update. (c) Copyright Peter Coghlan 2004-2012 */ #define VMIN 6 #define VTIME 11 #define NCCS 12 struct termios { unsigned int c_cc[NCCS]; unsigned int c_cflag; unsigned int c_iflag; unsigned int c_lflag; unsigned int c_oflag; unsigned int c_ispeed; unsigned int c_ospeed; }; #define TCSANOW 3 #define ECHO 256 #define ICANON 4096 int tcgetattr(int fd, struct termios *termios); int tcsetattr(int fd, int option, const struct termios *termios);