0

I have made a text box by python curse library, now I want to add incremental search function to it. In most linux software(like vim, man page), you are able to do incremental search by pressing '/'. Anybody have ideas how to do it in Python? I have been researching a while, but got no hints. Thank you.

zx_wing
  • 1,918
  • 3
  • 26
  • 39
  • You might be interested in urwid, instead. http://excess.org/urwid/ – Keith Nov 26 '12 at 02:20
  • Look at this http://stackoverflow.com/a/2690309/1531136 – ymn Nov 26 '12 at 05:51
  • Is the question how to do search at all? Or how to read individual keystrokes so you can make it incremental? – ckhan Nov 26 '12 at 09:06
  • Yes I am asking how to the search. Actually I am using urwid and I have knew how to handle keystorke and display. @chkhan – zx_wing Nov 26 '12 at 21:58
  • @ymn, the readline module won't help, I already use ncurses terminal. and readline doesn't do search – zx_wing Nov 26 '12 at 22:09

0 Answers0