Is there a way to move back and forth between characters when reading from the terminal
Edit command line input
Page 1 of 13 Replies - 1461 Views - Last Post: 21 October 2012 - 08:29 PM
Replies To: Edit command line input
#3
Re: Edit command line input
Posted 19 October 2012 - 12:05 AM
Lemur, on 19 October 2012 - 02:43 AM, said:
....the arrow keys?
... will simply print escape sequences when you press them in response to gets.
@OP: If you require 'readline' and then use Readline.readline to read input, the users will be able to use the left and right arrow keys to navigate through their input. You can also set it up, so that they can use the up and down arrows to recall their previous input.
#4
Re: Edit command line input
Posted 21 October 2012 - 08:29 PM
sepp2k, on 19 October 2012 - 01:05 AM, said:
Lemur, on 19 October 2012 - 02:43 AM, said:
....the arrow keys?
... will simply print escape sequences when you press them in response to gets.
@OP: If you require 'readline' and then use Readline.readline to read input, the users will be able to use the left and right arrow keys to navigate through their input. You can also set it up, so that they can use the up and down arrows to recall their previous input.
thanks that's exactly what I'm looking for
Page 1 of 1
|
|

New Topic/Question
Reply




MultiQuote






|