dbcli / mycli

A Terminal Client for MySQL with AutoCompletion and Syntax Highlighting.
http://mycli.net
Other
11.49k stars 663 forks source link

optimize the default cli option `--prompt` with splitline for long prompt #1144

Open hzc989 opened 10 months ago

hzc989 commented 10 months ago

Background

a default prompt (\\t \\u@\\h:\\d>) is already defined inside MyCli class. however it does not work properly when the total length exceeds 45 characters.

how to optimize it

simply define another default prompt with splitline

I made a PR which closes this issue