tannhuber / oh-my-zsh-budspencer

budspencer theme for the oh-my-zsh prompt
6 stars 0 forks source link

not playing nice with tmux #1

Open carlosreyes opened 9 years ago

carlosreyes commented 9 years ago

This theme works perfectly under zsh on a regular term, but as soon as I get into tmux it starts having all sorts of display glitches:

i am using terminator. if my tmux config is relevant at all, it is in my dotfiles repo

this happens when i repeatedly resize the window: 2015-02-12--1423718126_640x426_scrot also, after this the tmux bar dissapears if i try to go fullscreen

the cursor will be placed a line under where it needs to be: 2015-02-12--1423718154_635x31_scrot

this happens when I exit a program(vim, cmus, etc...) although it is purely a display issue: as soon as i start typing, i overwrite these chars (?112) 2015-02-12--1423718172_641x421_scrot

echo $TERM returns "xterm-256color" both normally and under tmux

tannhuber commented 9 years ago

There's a further development of that theme for prezto, see the README file. But it wasn't merged into the official prezto repository. And I haven't used zsh for a long period. I use fish today. Budspencer became absolutely powerful in the oh-my-fish repository. So, I'm sorry to say that the zsh themes are obsolete.

I think your problem might be a result of setting ZLE_PROMPT_INDENT=0. You can try setting it to 1. But then you will have a whitespace after the prompt. I had similar problems when I used zsh. It's one of the reasons why I was looking for a different shell.

carlosreyes commented 9 years ago

Thanks for the suggestions. I checked out fish and ended up switching. Impressed with how extensive the theme is on there and general features of the shell. Anyway, that unfortunately didn't end up helping the problem - which seemed to be terminator. Switched to st and it fixed the latter two problems. The first is still an issue with either tmux or openbox. Will investigate further. Cheers.

tannhuber commented 9 years ago

I can see similar mouse resizing issues with urxvt as well. It's also reproducable with bash. In tmux it seems that it happens only if the prompt is the first line within the window. Anyway, I use a tabbed/tiling window manager and never resize windows manually. So it doesn't hurt me. Nevertheless, I think that the existing terminal emulators are outdated, looking forward to finding a modern terminal in the near future.