GNU ReadlineGNU Readline is a software library that provides line-editing and history capabilities for interactive programs with a command-line interface, such as Bash. It is currently maintained by Chet Ramey as part of the GNU Project. This series looks at some of the features of this powerful library.
The power of GNU Readline - part 3
In part 2 we looked at deleting text in various ways and pasting it back, using GNU Readline key sequences.
The full-length notes (available here) contain some new terms and features of GNU Readline, and introduce some further ways of manipulating text, with some examples.
The power of GNU Readline - part 2
In part 1 we looked at some
Metakey sequences as well as the
DELkeys in the context of GNU Readline.
The full-length notes (available here) contain a brief summary of what we covered and introduce cutting and pasting the GNU Readline way, with some examples.
- Consistent BackSpace and Delete Configuration
- Wikipedia article on GNU Readline
- GNU Readline manual: https://tiswww.cwru.edu/php/chet/readline/rluserman.html (Note that the widely advertised address http://cnswww.cns.cwru.edu/php/chet/readline/rltop.html seems not to work any more. This one, which I found through the main GNU site, seems OK though)
- Previous episode:
The power of GNU Readline - part 1
We all use GNU Readline if we we use the CLI in Linux because it manages input, line editing and command history in Bash and in many tools.
I have been using Unix and later Linux since the 1980's, and gradually learnt how to do things like jump to the start or the end of the line, delete a character backwards up to a space, or delete the entire line.
I think that learning GNU Readline is worthwhile since it contains a lot more features than what I just described. I thought I would do a few episodes on HPR to introduce some of what I consider to be the most useful features.
I want to keep the episodes short since this is a dry subject, and, if you are anything like me, you can't take in more than a few key sequences at a time.
The source of my information is the GNU Readline Manual. This is very well written, if a little overwhelming.
To read the rest of the notes for this episode follow this link: http://hackerpublicradio.org/eps/hpr2073/full_shownotes.html
- Wikipedia article on GNU Readline: https://en.wikipedia.org/wiki/GNU_Readline
- GNU Readline manual: http://cnswww.cns.cwru.edu/php/chet/readline/rltop.html