> /dev/vc/*, my cua devices are /dev/cua/* and so on. It would be great if > the ttyname function could make a recursive scan thru the compleate /dev > directory structure instead of lokking only in /dev/ and /dev/pts/. Why not use /proc/self/fd/0 instead? Martin