readline goes invisible after <ctrl>R

1 risposta [Ultimo contenuto]
experix
Offline
Iscritto: 01/14/2014

After upgrade to version 7, I am having trouble with the R function in readline (search for previous input containing a given string). It finds the previous input and presents that, but when I push one of the cursor keys, the line goes blank. The cursor will move over that blank space and I can type input and have the edited lines show up in the history. But editing 'blind' is not a satisfactory experience.
This is the behavior in a TTY. In an xterm, the cursor key causes the line to be re-printed starting a few character cells to the left of where it was at first, and that number of character cells at the end does not get erased. I can edit that line normally (ignoring those extra characters on the screen).
My readline library is libreadline.so.6.3 dated 18 Mar 28 2014

Magic Banana

I am a member!

I am a translator!

Offline
Iscritto: 07/24/2010

According to 'man readline':

Readline has variables that can be used to further customize its behavior. A variable may be set in the inputrc file with a statement of the form

set variable-name value

Except where noted, readline variables can take the values On or Off (without regard to case). Unrecognized variable names are ignored. When a variable value is read, empty or null values, "on" (case-insensitive), and "1" are equivalent to On. All other values are equivalent to Off. The variables and their default values are:

(...)

isearch-terminators (``C-[ C-J'')
The string of characters that should terminate an incremental search without subsequently executing the character as a command. If this variable has not been given a value, the characters ESC and C-J will terminate an incremental search.