Terminal emulation through SDL