Minor fixes: - Use "OPOST | ONLCR" as a c_oflag in the raw mode instead of 0, which should   make debug output mode readable; - flush input buffer when switching to/from raw mode. This should prevent   leaking raw scancodes into your shell prompt when program called   VGLKeyboardEnd() w/o processing all scancodes in the buffer.
Minor fixes:
- Use "OPOST | ONLCR" as a c_oflag in the raw mode instead of 0, which should
  make debug output mode readable;
- flush input buffer when switching to/from raw mode. This should prevent
  leaking raw scancodes into your shell prompt when program called
  VGLKeyboardEnd() w/o processing all scancodes in the buffer.

jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase