Bash autocomplete
Posted: Tue Mar 17, 2009 3:41 pm
I am having a bit of trouble getting Bash's autocomplete function to work properly in my OS's port.
I've implemented a non-canonical reading mode in my crappy terminal driver. I had hoped that autocomplete would magically start working. Unfortunately, only to some extent. It completes the command but doesn't show on screen. Triple tab displays directory contents OK.
eg. 'cd /de[tab][enter]' would complete to 'cd /dev' (but not printed at the prompt)
Anything obvious I should be doing? I don't have a termcap file as I don't do any ansi vt emulation stuff. Do I need one?
I'm not familiar with all this termios/termcap voodoo yet.
Cheers.
I've implemented a non-canonical reading mode in my crappy terminal driver. I had hoped that autocomplete would magically start working. Unfortunately, only to some extent. It completes the command but doesn't show on screen. Triple tab displays directory contents OK.
eg. 'cd /de[tab][enter]' would complete to 'cd /dev' (but not printed at the prompt)
Anything obvious I should be doing? I don't have a termcap file as I don't do any ansi vt emulation stuff. Do I need one?
I'm not familiar with all this termios/termcap voodoo yet.
Cheers.