hanslub42 / rlwrap

A readline wrapper
GNU General Public License v2.0
2.59k stars 151 forks source link

option rlwrap displays prompt at cursor position #157

Closed nkh closed 2 years ago

nkh commented 2 years ago
echo -e "\e[H" ; command=$(rlwrap -p'0;33' -S 'ftl > ...)

I put the cursor at the top left of the screen but the prompt appears in the line under it, is there any way to fix this?

hanslub42 commented 2 years ago

Try:

echo -ne "\e[H"; # etc

Without the -n echo outputs a trailing newline.