#include // show how a terminal, /dev/pts/9 is a file that sends dat to the // screen. int main() { int fd = open("/dev/pts/9", 1); if ( fd == -1 ) exit(1); write(fd, "hello!\n", 7); close(fd); }