vadviktor/bullettrain-go-core

Long commands sometimes vanish on typing

Closed this issue · 3 comments

In both ZSH and BASH sometimes when I'm typing long instructions, the line of text may become invisible for some reason.

jtyr commented

I have noticed this as well. But if I maximize the shell window the problem disappears. Is that something to do with the colors and their interpretation in the shell emulator? I have tested it in Terminator and Konsole.

I believe it has some connection to how the terminal emulators react to not having their "non-printing" characters added to the text. Simply I have not found a way to add \[ and \] (tput sgr0) to surround the colour codes (in ZSH they are {% and }%. Adding the ZSH ones make no difference to what I have observed. Some solid way of reproducing the issue would help.

I think, for ZSH I have fixed these by adding in the non-printing characters. 6b7b13b

For BASH though, adding I am not able to figure out how to add them :(