basic terminal emulation working