Questions tagged [readline]

These questions are about GNU Readline, a library that provides command-line editing and history searching capabilities for Bash and other interactive command-line programs. Use this tag for questions relating to the use of Readline functionality in Bash and other software.

3 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2 votes
0 answers
892 views

Using readline in python3 (input) pressing arrows will remove text from the input

My input code is: import readline readline.parse_and_bind('tab: complete') readline.parse_and_bind('set editing-mode vi') while True: c = input('INPUT> ') (It is a little piece of test code ...
Yoran Jansen's user avatar
  • 1,066
1 vote
0 answers
179 views

Bash: readline+vim jumps into cmd mode in forward-history-search and upon pressing Delete

I am using the vim mode in my bash (i.e. I setup readline to use vim mode through ~/.inputrc). If I do a history-search-backward and then history-search-forward in insert mode with some characters ...
Bananach's user avatar
  • 620
0 votes
0 answers
90 views

How to put cursor between PS1 characters?

I'd like to put the insertion cursor of bash inside the PS1 variable: export PS1='\u@\h:<cursor here>:\w' Where the colons are included in the prompt (typing enter should result in a string "::...
user avatar