dbcli / mycli

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

Disable `clitoolbar` via `.myclirc` #1011

Open PROxZIMA opened 3 years ago

PROxZIMA commented 3 years ago
Terminal: Alacritty
MySQL:    8.0.27
mycli:    1.24.1

Hey, I was testing out mycli and it's really an awesome tool but there's one thing that is bugging me. Take a look here

https://user-images.githubusercontent.com/43103163/140604042-6a4ee690-c49a-4bec-9e8c-d9d4185998a9.mp4

After every command, clitoolbar seems to refresh in an unusual way. Is there any proper way to disable it? I can achieve it by modifying the package source files in dist-packages directory but it's obviously a dirty way to do this.

Thank you.

rolandwalker commented 2 years ago

Hi! I can see the flicker in your movie, super annoying. Same thing does not happen in iTerm2.

It is probably a prompt_toolkit issue rather than a mycli issue per se.

Personally I would welcome an option to turn it off; others might not agree.

PROxZIMA commented 2 years ago

It is probably a prompt_toolkit issue rather than a mycli issue per se.

Now that I tried ptpython, which is build build on top of prompt_toolkit, shows the exact same flickering issue. I'll conclude that this issue is related to prompt_toolkit and not mycli. They have an open issue which relates this same behavior.

Will keep this issue open for more discussion on enable/disable option.