471,347 Members | 1,750 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,347 software developers and data experts.

Shell like Arrow Keys

2
I'm currently working on a homework assignment to write a shell. I've got pretty much all of it done, but I'm having some problems getting arrow key history working. I spent a decent amount of time playing with curses last night and while I have something that could be used to do arrow key history I don't really like the way curses works. Does anyone know if there is a way to implement this with out curses? Alternatively, if some one knows how to prevent curses from clearing the screen and changing the function of keys that I'm not looking for (like the backspace key) that would work too. The 2 alternative ideas I've had about this are use the keyboard handler in Tkinter, hiding the window and seeing if I could find the signal interrupt for I/O and then grabbing what key was hit and do something based on that.

You guys are awesome BTW, I've gotten a lot of answers to other questions from here.
Dec 9 '07 #1
1 1297
Hero45
2
It seems the readline library takes care of this problem.
Dec 11 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

2 posts views Thread by Darren Oakey | last post: by
11 posts views Thread by Rlrcstr | last post: by
reply views Thread by William Meyer | last post: by
2 posts views Thread by Vincent | last post: by
1 post views Thread by Martijn Mulder | last post: by
reply views Thread by Martijn Mulder | last post: by
reply views Thread by Ronak mishra | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.