home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / lang / perl / 7957 < prev    next >
Encoding:
Internet Message Format  |  1993-01-23  |  894 b 

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