gateways/telnet: fix buffering issues

command prompt is now displayed before reading next input command
Line-buffering of STDOUT is disabled to allow debugging in terminal
gateways/telnet: reindent to tabs
queryTerminal: extend prompt regexp for air12