Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!mips!spool.mu.edu!uunet!convex!usenet From: tchrist@convex.COM (Tom Christiansen) Newsgroups: comp.lang.perl Subject: Re: Perl keyboard processing Message-ID: <1991May21.200921.28300@convex.com> Date: 21 May 91 20:09:21 GMT References: <1357@unet.UUCP> <1991May18.211524.24055@convex.com> <1991May21.190550.27956@uunet.uu.net> Sender: usenet@convex.com (news access account) Reply-To: tchrist@convex.COM (Tom Christiansen) Organization: CONVEX Software Development, Richardson, TX Lines: 37 Nntp-Posting-Host: pixel.convex.com From the keyboard of rbj@uunet.uu.net (Root Boy Jim): :tchrist@convex.COM (Tom Christiansen) writes: : :>make sure not to use the same handle :>for both in and out though. this idiom is open seen: :> :> open (TTYIN, " open (TTYOUT, ">/dev/tty") || die "Can't open /dev/tty" ; : :Why should different FH be used? :Does the book discuss this anywhere? I don't know whether it's in the book. The problem is bidirectional stdio buffers, I think. Basically, it just doesn't work easily unless you have two filehandles; at leat, it didn't last time I checked. :>Using octal escapes is probably easiest. : :I stopped thinking in octal when I left the PDP-11 world. :Hex is where it's at Tommy me boy! Not my fault you've been hexed. :-) :But wait! What about those new escape sequences: \e, and \c? :I still want Larry to put in \m for metachars. Ick. You can still do it all in octal. :-) :This must be "Tom Bashing Week". Sorry dude! Catch me at Nashville and we'll grind the axe there at the bar. (Gosh, do they drink in Nashville????) --tom -- Tom Christiansen tchrist@convex.com convex!tchrist "So much mail, so little time."