home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / lang / pascal / 8406 < prev    next >
Encoding:
Internet Message Format  |  1993-01-21  |  3.0 KB

  1. From: karen@hpsgwr.sgp.hp.com (Vacation Student)
  2. Date: Wed, 20 Jan 1993 02:39:59 GMT
  3. Subject: Single character inputs (Again...)
  4. Message-ID: <550002@hpsgwr.sgp.hp.com>
  5. Organization: HP Singapore Asian Design Ctr
  6. Path: sparky!uunet!paladin.american.edu!gatech!swrinde!elroy.jpl.nasa.gov!sdd.hp.com!hpscit.sc.hp.com!hplextra!hpcc05!hpsgm2!hpsgwr!karen
  7. Newsgroups: comp.lang.pascal
  8. Lines: 54
  9.  
  10.  
  11. >I'm asking for some solution to this small problem for a friend.
  12. >I've not used pascal for some 5 years now so I couldn't give him
  13. >a solution. anyway the question is:
  14. >During the execution of the program, I want to enter a letter or
  15. >key which will immediately execute the next program line without
  16. >having to enter a <Return>
  17. >It's a bit like the "getch" in curses when using C. In the case of "getch",
  18. >the program waits for the user for input. The user enters a key and
  19. >immediately the next action is taken.(without having to enter <Return>)
  20. >I wonder if there is a way to do this in pascal.
  21. >all I know is that in pascal, "readln" expects a <Return> to signify
  22. >termination of an input. Is there anything for character manipulation?
  23.  
  24. >karen
  25.  
  26. Hi again folks,
  27.  
  28. I refer to the above problem I posted some days back. My friend is
  29. using Digital's Vax Vms Pascal.  I had several replies offering 
  30. solutions using Turbo pascal. Thanks guys. Sorry I didn't give the
  31. above info earlier. If any of you are familiar with the digtal's
  32. vms pascal, perhaps you could drop me some probable solutions. 
  33.  
  34. Which brings me to my next problem. Nothing on pascal at all actually.
  35. I'm new here (as you can see from my address above, I'm just a 
  36. "Vacation Student" at HP (vacation indeed...). I'm currently 
  37. at Nanyang Technological University (Singapore) and doing my Industrial
  38. attachment now). Anyway, I've only been playing around with "notes"
  39. (or "news" whatever you call it) for a week or so and pretty green
  40. about it.           
  41.  
  42. I just had a look at notes at my friend's place yesterday(she's
  43. modeming from home) and discovered that her index page for comp.lang.pascal
  44. (and other news groups as well) were filled with lots of messages
  45. while mine (believe it or not) still only contains a single 
  46. message, which was what I posted on 13 Jan("Prob: Single character inputs").
  47. On my friend's notes, it was indicated that I had 1 response. However
  48. over here, there's no indication at all and no other new messages.
  49. Is it because i get limited access to all the messages posted from
  50. around the world? Or is it because my server here does not allow
  51. certain things to pass through? Perhaps someone can tell me or refer
  52. me to a newsgroup from which I can get more information regarding
  53. these matters. 
  54.  
  55. As far as my above pascal problem is concerned, I've received replies which
  56. went directly to my mail and thus I have no problem receiving and
  57. reading them. As such, please mail/reply any further messages to my
  58. above address, until I can find out why I cannot receive the bulk of
  59. messages or responses. Thanks again folks.
  60.  
  61. "Vacation"(!!) Student
  62. karen
  63.  
  64.