Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

broken text wrapping #2080

Closed
absolutelynothelix opened this issue Oct 20, 2019 · 4 comments
Closed

broken text wrapping #2080

absolutelynothelix opened this issue Oct 20, 2019 · 4 comments

Comments

@absolutelynothelix
Copy link

absolutelynothelix commented Oct 20, 2019

if you reach the end of the line the string will overlap itself once and then start wrapping normally. also for some reason the string starts wrapping pretty early for the first time, leaving some space before the window border.
1571595944
1571596037

my kitty config can be found in my previous issue (except padding: i disabled it to see if it is the cause): #2079

@kovidgoyal
Copy link
Owner

This likely has nothing to do with kitty. Make sure your TERM variable is set to xterm-kitty. And try to run

kitty cat

and then try to reproduce the issue. If you can feel free to update this issue with the output of kitty --debug-config and I will take a look.

@absolutelynothelix
Copy link
Author

absolutelynothelix commented Oct 21, 2019

@kovidgoyal, looks like i found the root cause: it happens only if ps1 has colors.
1571654489
and i assume it has something to do with kitty.

here is broken ps1 colored in light blue: export PS1="\e[36m\h:\w\\$\e[0m "
here is working ps1 without colors: export PS1="\h:\w\\$ "

@kovidgoyal
Copy link
Owner

No it has to do with your shell. Use

\[\e[36m\]\h:\w\\$\[\e[0m\]

@absolutelynothelix
Copy link
Author

absolutelynothelix commented Oct 21, 2019

@kovidgoyal, it works fine now, thank you! i remember these escaped brackets but i lost my previous bashrc file where i used them so i decided to ignore them. looks like they are important.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants