chzyer / readline

Readline is a pure go(golang) implementation for GNU-Readline kind library
MIT License
2.08k stars 275 forks source link

fix(autocomplete newline): autocomplete newline #206

Open shaohk opened 2 years ago

shaohk commented 2 years ago

Print autocompletion keywords starting on a new line. \n is only newline, \r is to move the cursor to the beginning of the line.

only \n

image

\n\r

image
tpodowd commented 2 years ago

Hi @shaohk - do the fixes in https://github.com/chzyer/readline/pull/207 help this issue? I have changed the code quite a lot. Did you run into your issue on Windows or Linux or other?