On Tue, Oct 10, 2006 at 04:16:06PM +0200, Jakko Pastuchio wrote: > Hi all, > > First I truely apologize for this non-kernel question, > as just don't succeed in finding the answer, > and there's no one better than you guys. > > how does the TAB completion work ? First you need to set your tty in raw mode, usually it is in cooked mode. You can use direct C calls using ioctl() or use the ncurses library for that. > > what does it execute ? You should read readline(3) or editline(3) and search for completion. This is the library used by nearly every program that does tab completion. Basically readline has an array of possibilities which it displays when you press TAB.. > > I know that the shell is responsible for that, > but what does it invoke to take care of the TAB ? > > thanks a lot and sorry... > jakko > > -- > Kernelnewbies: Help each other learn about the Linux kernel. > Archive: http://mail.nl.linux.org/kernelnewbies/ > FAQ: http://kernelnewbies.org/faq/ -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/