Shell like Arrow Keys

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Hero45
    New Member
    • Dec 2007
    • 2

    Shell like Arrow Keys

    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.
  • Hero45
    New Member
    • Dec 2007
    • 2

    #2
    It seems the readline library takes care of this problem.

    Comment

    Working...