patch very preliminary support for /dev/pts/