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

Closed
itsthatguy opened this Issue Jan 10, 2013 · 17 comments

Comments

Projects
None yet
8 participants

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

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?

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

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.

Sorry added edits above.

OS: Mountain Lion
Terminal: iterm2

Contributor

derekbrokeit commented Jan 10, 2013

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/erikw/tmux-powerline/issues/125#issuecomment-12123616.

ZSH: 5

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

wtf-powerline-zsh-dupes

Contributor

derekbrokeit commented Jan 10, 2013

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/erikw/tmux-powerline/issues/125#issuecomment-12124884.

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

Contributor

derekbrokeit commented Jan 10, 2013

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/erikw/tmux-powerline/issues/125#issuecomment-12125193.

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

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

Owner

erikw commented Feb 18, 2013

Does that solve the problem @itsthatguy ?

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

erikw closed this in e8ff307 Feb 27, 2013

just to add that adding

LANG=en_US.UTF-8

fixed the problems for me

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:~$

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 tacahiroy pushed a commit to tacahiroy/tmux-powerline that referenced this issue Mar 20, 2015

@erikw erikw Info on how to solve multiple line issue in bash in README. Fixes #125. 9650d84

foobar commented Nov 24, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment