home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!malgudi.oar.net!uoft02.utoledo.edu!anwsun.phya.utoledo.edu!jsteiner
- Newsgroups: comp.lang.perl
- Subject: getting input from a tty
- Message-ID: <1993Jan22.172529.1237@uoft02.utoledo.edu>
- From: jsteiner@anwsun.phya.utoledo.edu (jason 'Think!' steiner)
- Date: 22 Jan 93 17:25:29 EST
- Nntp-Posting-Host: anwsun.phya.utoledo.edu
- X-Newsreader: Tin 1.1 PL4
- Lines: 12
-
- ok, now i feel really stupid, but i'm really itching for an answer.
- i'm writing a program that first reads a bunch of stuff from stdin,
- (up to an EOF) then prompts the user for how that stuff is to be
- processed. it works fine if stdin & the terminal happen to be the
- same thing, since i can just seek(STDIN,0,0) & keep going from there.
-
- if they're -not- the same thing, i need some way to read directly
- from the tty or reattach STDIN back to the tty. any suggestions or
- fragments?
-
- jason
-
-