Portable interface for terminal I/O