• Post Reply Bookmark Topic Watch Topic
  • New Topic

To input up arrow key in c program in linux  RSS feed

 
ravindra koranga
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to take input from the user and check if the user gave up arrow key as the input. I have tried getch function but it only allows user to input a character. I want that user may input up/down arrow key or any string containing more than one characters. Later I wish to check if the user gave up/down key as input or some other string. Please help.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!