Closed ser-vasilich closed 1 year ago
Because rlwrap
has to rely on undocumented (and changing) readline
behaviour (like the positioning of the cursor right after accepting a line) there have been some problems with bracketed paste mode (which have become much more widespread after readline
started enabling this mode by default)
Your Ubuntu problem is a duplicate of #108, your MacOS problem is a duplicate of #168.
To avoid problems, either use the newest readline
and rlwrap
, or disabe bracketed-paste by putting ...
set enable-bracketed-paste off
... somewhere in ~/.inputrc
I have a simple program in Rust that prints a prompt, reads a string, and prints it. read1line.rs
When I run the program in terminal and enter line 123, I get the result:
The result of running in terminal on MacOS with rlwrap:
The result of running in terminal on Ubuntu with rlwrap:
On Linux, the prompt disappears, and on MacOS, there is an extra text as long as the prompt.