tools for creating user-friendly command-line prompt?
        Posted  
        
            by 
                davka
            
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by davka
        
        
        
        Published on 2011-02-03T15:23:16Z
        Indexed on 
            2011/02/03
            15:25 UTC
        
        
        Read the original article
        Hit count: 272
        
I notice that some programs (e.g. sqlite, mysql client) provide a command-line prompt that is very similar in capabilities to the bash's, including:
- line editing with left and right arrows, delete, insert, ^K, etc.
 - history browsing with up and down arrows
 - ^R for reverse i-search in command history
 
which make me think that they are using the same toolset for this.
I'd like to create a prompt with similar capabilities in my program, which tools can I use? I prefer it to have the same functionality as in bash, so that the users would be familiar with it.
© Stack Overflow or respective owner