• Post Reply Bookmark Topic Watch Topic
  • New Topic

Reading input from terminal  RSS feed

 
Preben
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I' m writing a program that takes input from a teriminal window.
The program use textbased menus.
Eks.
M e n u
-------
1. Show status
2. Edit ......
3. Delete ......
4. Exit program
Choice: 1
How can I avoid to hit "Enter" each time a selection is made?
- new programmer
 
Carl Trusiak
Sheriff
Posts: 3341
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Could you post your code so we can evaluate what you are doing to what you want so we can make recommendations?
 
Preben
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is the code snippet from my program:

Added UBB "CODE" tags to preserve indentation. And please note the policy about names.
[This message has been edited by Frank Carver (edited October 24, 2000).]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!