Hyper: Text does not wrap to second line but does on thrid

Created on 6 Jul 2016  路  8Comments  路  Source: vercel/hyper

Text does not wrap when you reach the end of the window but when you expect text to be on the third line it does wrap and goes to the second line.

Most helpful comment

I am still experiencing this on the latest build:
weird-prompt

When the terminal size is small enough that text doesn't fit on a single line, it has odd wrapping behavior. This also effects command history so if you cycle through your command history the "start" of the line is shifted to the right.

I'm not sure if it is related, but I do I have a custom PS1 with encoded colors:
https://github.com/trevordmiller/dotfiles/blob/be16b5385791daa17701b1023352393c00a039cd/files/.bash_profile#L26
This works in iTerm and Mac terminal though

All 8 comments

Can you elaborate a bit more please?

Sorry I didn't explain the issue too well. Hope this explains it better than my words.

line wrap

I believe this was fixed with the introduction of the LANG env variable as noted in #283.

This is still reproducible today, and its cause is having any colored text.

In Hyperterm,

  1. export PS1="\e[0;32m\$\e[m "
  2. Type until the end of the line and _observe it will not wrap_
  3. export PS1="\$ "
  4. Type until the end of the line and _observe text wraps correctly_

I am still experiencing this on the latest build:
weird-prompt

When the terminal size is small enough that text doesn't fit on a single line, it has odd wrapping behavior. This also effects command history so if you cycle through your command history the "start" of the line is shifted to the right.

I'm not sure if it is related, but I do I have a custom PS1 with encoded colors:
https://github.com/trevordmiller/dotfiles/blob/be16b5385791daa17701b1023352393c00a039cd/files/.bash_profile#L26
This works in iTerm and Mac terminal though

@trevordmiller
Your URL not working

@liwsakilive Updated URL: https://github.com/trevordmiller/dotfiles/blob/be16b5385791daa17701b1023352393c00a039cd/files/.bash_profile#L26

I can no longer reproduce on latest Hyper; this must have been fixed with one of the releases in the past 8 months.

@atdrago's solution does not work for me. I use Hyper 1.3.3 with zsh on Windows and my shell is shell: 'C:\Windows\System32\bash.exe'.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sarneeh picture sarneeh  路  3Comments

cooperpellaton picture cooperpellaton  路  3Comments

eoinmurray picture eoinmurray  路  3Comments

dbkaplun picture dbkaplun  路  3Comments

daenuprobst picture daenuprobst  路  3Comments