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

Text does not wrap to second line but does on thrid #64

Closed
dka09 opened this issue Jul 6, 2016 · 8 comments
Closed

Text does not wrap to second line but does on thrid #64

dka09 opened this issue Jul 6, 2016 · 8 comments

Comments

@dka09
Copy link

dka09 commented Jul 6, 2016

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.

@rauchg
Copy link
Member

rauchg commented Jul 7, 2016

Can you elaborate a bit more please?

@dka09
Copy link
Author

dka09 commented Jul 7, 2016

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

line wrap

@timothyis
Copy link
Contributor

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

@atdrago
Copy link

atdrago commented Sep 20, 2016

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

@trevordmiller
Copy link

trevordmiller commented Oct 6, 2016

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

@liwsakilive
Copy link

liwsakilive commented May 27, 2017

@trevordmiller
Your URL not working

@trevordmiller
Copy link

trevordmiller commented May 27, 2017

@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.

@TheSETJ
Copy link

TheSETJ commented Aug 23, 2017

@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'.

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

7 participants