io: add standard input/output. Add pair_device.