I would like to write a small application / directory / file launcher application in python. To do this quickly, I would like autocomplete / autostart entries. But I want to display these sentences as user types. From what I read about the completion of the readline module, it is only possible with the help of the "Hotkey for completion", for example. Tab.
Any suggestions?
Using filter curses, as suggested below, doesn't seem to work. This minimal example clears my screen despite calling filter ():
import curses curses.filter() win = curses.initscr() curses.noecho() curses.cbreak() while 1: key = win.getkey() win.echochar(key) if key == "Q": break curses.endwin()
source share