toejough / pimento

simple CLI menu

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

consider implementing tab completion without readline

toejough opened this issue · comments

Python's "input" readline support is broken in python3, and is implicit in any case. This is unpythonic and causing bugs.

Create a tab-completion/arrow module and use it in pimento instead of input/readline.

There's good stuff in the branch for this bug. need to separate it out into its own repo or two. One for the low level getch, and one for the higher level input with tab completion and history, then import and use the higher level lib in pimento.

home is \27[1~ (27, 91, 49, 126)
end is \27[4~ (27, 91, 52, 126)

These also need to be supported, because we're managing where home and end are (probably)

page up: 27, 91, 53, 126
page down: 27, 91, 54, 126
delete: 27, 91, 51, 126

See the VT220 stuff here for a ton more...the first iteration of this module should just do what is listed above.