Skip to content

Example of tab completion using the Readline C library. This also shows how to tab complete sub-commands.

Notifications You must be signed in to change notification settings

tdmathison/ReadlineTabCompletion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ReadlineTabCompletion

Example of tab completion using the Readline C library. This also shows how to tab complete sub-commands.

[ciph34block@ciph34block ~]$ ./ReadlineExample 
shell > help 
Simple shell using readline with multiple levels of tab completion

Core Commands
=============

    Command    Description
    -------    -----------
    help       Shows this menu
    show       Shows options and information
    exit       Exits this shell

shell > show 
info     options  
shell > show options 
OPTION 1: X
OPTION 2: Y

shell > show info 
This is just an example command where you can tab
complete after tab completing an initial command

shell > exit

About

Example of tab completion using the Readline C library. This also shows how to tab complete sub-commands.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published