Added termios and test script

termios functions and constants marked as POSIX:2001-only

Cleaned up test termios script