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

Powerline on multiple lines in bash, and not showing top one on zsh #125

Closed
itsthatguy opened this issue Jan 10, 2013 · 19 comments
Closed

Comments

@itsthatguy
Copy link

So... I have it to a state where it's sort of working in bash. With ZSH, it's display is even worse.

Any ideas?

wtf-powerline
wtf-powerline-zsh

@erikw
Copy link
Owner

erikw commented Jan 10, 2013

Exactly what is the problem and what does the two images represent? Is that single "u" on a line of it's own caused by tmux-powerline?

@itsthatguy
Copy link
Author

Yes. Tmux without powerline works fine, it's the addition of powerline that seems to be causing the issue...

Edit:
The issue are that in Bash, the powerline is on 2 lines, and glitchy entering commands.
With ZSH the first line of powerline doesn't show up only the u that you see on the second line on the bash version. However, when I enter a command, it displays for a super glitchy second; it flashes in and out of sight, as I run commands

@erikw
Copy link
Owner

erikw commented Jan 10, 2013

That's strange. What terminal emulator, OS etc. are you using?

How does ZSH affect this? tmux-powerline runs with bash and should not depend on what shell you as a user are using.

@itsthatguy
Copy link
Author

Sorry added edits above.

OS: Mountain Lion
Terminal: iterm2

@derekbrokeit
Copy link
Contributor

Also,what version of zsh are you using. Old versions of zsh did not play
nicely with Unicode. If this is an old version it may cause issues when
tmux attempts to display Unicode. That being said, I use zsh and suspect
the cause is elsewhere if you have updated your shell.

2013�$BG/�(B1�$B7n�(B11�$BF|6bMKF|�(B Erik Westrup notifications@github.com:

That's strange. What terminal emulator, OS etc. are you using?

How does ZSH affect this? tmux-powerline runs with bash and should not
depend on what shell you as a user are using.

�$B!=�(B
Reply to this email directly or view it on GitHubhttps://github.com//issues/125#issuecomment-12123616.

@itsthatguy
Copy link
Author

ZSH: 5

Here's the duplicate line issue (also showing how my cursor in moving down)

wtf-powerline-zsh-dupes

@derekbrokeit
Copy link
Contributor

I think you should disable the powerline in your PROMPT just to make sure
it is tmux's problem.

2013�$BG/�(B1�$B7n�(B11�$BF|6bMKF|�(B Kevin Altman notifications@github.com:

Here's the multiple line issues (also showing how my cursor in moving down)

[image: wtf-powerline-zsh-dupes]https://f.cloud.github.com/assets/1118006/58727/04c810dc-5b7f-11e2-99a1-9f46db1573e6.jpg

�$B!=�(B
Reply to this email directly or view it on GitHubhttps://github.com//issues/125#issuecomment-12124884.

@itsthatguy
Copy link
Author

I have. It does this in both ZSH and bash, with no theme, or alterations.

@derekbrokeit
Copy link
Contributor

Also what is LANG and TERM set to?

2013�$BG/�(B1�$B7n�(B11�$BF|6bMKF|�(B Kevin Altman notifications@github.com:

I have. Still does it.

�$B!=�(B
Reply to this email directly or view it on GitHubhttps://github.com//issues/125#issuecomment-12125193.

@itsthatguy
Copy link
Author

LANG=en_US.UTF-8
For TERM I've tried both,
TERM=screen-256color
TERM=xterm-256color

@narze
Copy link

narze commented Feb 18, 2013

I had this problem with my zsh on terminal. Fixed by unchecking [Unicode East Asian Ambiguous characters are wide] in Preferences -> Settings -> Advanced

@erikw
Copy link
Owner

erikw commented Feb 18, 2013

Does that solve the problem @itsthatguy ?

@itsthatguy
Copy link
Author

@erikw: It's too hard to say, I ended up reformatting my computer.

@rubenfonseca
Copy link

just to add that adding

LANG=en_US.UTF-8

fixed the problems for me

@kevinfhell
Copy link

unfortunately, I also met this multi-line problem, here is my LANG and TERM, any comments?
dingo@dingofhell:$ echo $LANG
en_US.UTF-8
dingo@dingofhell:
$ echo $TERM
screen-256color
dingo@dingofhell:~$

@theunforgiven
Copy link

I just ran into this problem today and found this thread.

I was using ITerm2 and while the option isn't exactly 'Fixed by unchecking [Unicode East Asian Ambiguous characters are wide]' a very similar option 'Treat ambigous-width characters as double width' was on, and disabling it fixed the problem for me.

tacahiroy pushed a commit to tacahiroy/tmux-powerline that referenced this issue Mar 20, 2015
@foobar
Copy link

foobar commented Nov 24, 2016

I'm having this problem on Fedora 25, gnome terminal.

@yaway
Copy link

yaway commented Jun 29, 2017

Same problem😕
I did as this answer said: https://stackoverflow.com/a/16174619/907353 and solved.

.tmux.conf

# use UTF8
set -g utf8
set-window-option -g utf8 on

@Jeklah
Copy link

Jeklah commented Mar 29, 2019

I have similar issue. I am using zsh and mintty. I have the left and right segments showing up properly, but the big green bar is still in the centre, doesn't look too bad...but if it's unintended, I am experiencing this bug.

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

10 participants