Hi! I've looked into this:
* readline 8.1 enables bracketed-paste by default; * when bracketed-paste is enabled, rl_deprep_terminal() prints BRACK_PASTE_FINI ("\033[?2004l\r") to rl_outstream; * this moves the cursor to the beginning of the line (instead of the position after the prompt), which causes the rlwrap prompt to be overwritten during rl_redisplay(). * thus, adding "set enable-bracketed-paste off" to my ~/.inputrc fixes the problem; * THB I'm not entirely sure whether this is a bug in readline or in rlwrap, so I'll report it to both upstream projects. - Felix