Added termios and test script

Moved tests-termios.lua to examples/termios.lua