Skip to content

Add automatic color for underline cursor

toluschr requested to merge toluschr/konsole:automatic-color into master

What does this do?

Automatically pick a more readable color when the underline cursor has the same color as underlined text

Escape sequence \033[0;4m \033[31;4m \033[32;4m \033[33;4m
Before 11_53_12 11_55_52 11_56_49 11_57_44
After 11_58_59 11_59_47 11_48_12 11_48_58

The code still needs some work, and the problem persists, when the current character is an underscore. Also, the colors look ugly. - Maybe they could be just black or white?

Edited by Tomaz Canabrava

Merge request reports