hyper icon indicating copy to clipboard operation
hyper copied to clipboard

Text Wrapping Problem

Open xscheiner opened this issue 10 years ago • 73 comments

On the screen grab below you can see part of a command:

image

Here is what happens when I type the next character:

image

I typed an s to complete the word 'works' and then like which started to appear over the other text which was no longer visible.

xscheiner avatar Jul 19 '16 14:07 xscheiner

Noticing the same thing. Here's a .gif of the interaction:

hyperterm-text-overflow

michalkopanski avatar Jul 19 '16 16:07 michalkopanski

Also a related bug: When you submit a command that was wrapped, it will break the "Press up to access previous command" feature.

Pressing UP then DOWN keys after a wrapped command:

Pressing UP and DOWN keys after a non-wrapped command:

michalkopanski avatar Jul 19 '16 21:07 michalkopanski

Also see: https://github.com/zeit/hyperterm/issues/64

mauro-oto avatar Jul 20 '16 00:07 mauro-oto

Can't reproduce this, what version are you running? wrap

albinekb avatar Jul 25 '16 17:07 albinekb

@albinekb I believe this was fixed since the addition of the LANG environment variable. Using the "C" default instead of the "en_US" or "en_US.UTF-8" strings reproduces the broken wrapping behavior.

mauro-oto avatar Jul 25 '16 17:07 mauro-oto

Nice, so we can close this one and #64 ?

albinekb avatar Jul 25 '16 17:07 albinekb

@albinekb I'd say so, @rauchg?

mauro-oto avatar Jul 25 '16 18:07 mauro-oto

This seems to still be a problem; here is a duplicate issue with more information: https://github.com/zeit/hyperterm/issues/64

trevordmiller avatar Oct 06 '16 06:10 trevordmiller

I'm still also experiencing this after changing PS1 in my ~/.bashrc:

image

I noticed it will only start wrapping after the second line:

kapture 2017-04-04 at 16 12 46

markpanado avatar Apr 04 '17 08:04 markpanado

I'm seeing this as well, but on Windows 10.

cfjedimaster avatar Apr 14 '17 14:04 cfjedimaster

I'm also seeing this on Windows 10... still almost a month later.

mwheeler avatar May 01 '17 07:05 mwheeler

+1

neolectron avatar Jun 06 '17 08:06 neolectron

Also have had this problem off and on with Windows. Went to troubleshoot by doing a clean install of hyper (including removing all Hyper settings in AppData) but now it's working correctly and I can't reproduce. May have something to do with what I had in my dotfiles but at the moment I'm not sure.

unleashit avatar Jun 18 '17 00:06 unleashit

Spoke to soon, the problem came back. I'll also jump on the screencast bandwagon since my issue is a bit of a variation from the the above. It's a bit different whether I'm in zsh or bash, and notice what happens when I backspace:

hyper

Everything was fine until I added a couple of plugins to my .hyper.js without installing them first (I'm new to Hyper and didn't know that was a key step (duh), After seeing the notification that hyper wasn't happy, I installed the plugins. Didn't fix the wrapping issue, neither did reverting my .hyper.js to the original. I'm not saying adding the plugins is what triggered it, but that's exactly all I did before the problem began.

Also notice that the title is truncated in the title bar (separate issue).

Unfortunately, this is all the time I can invest in Hyper. Hope you guys can get it sorted.

unleashit avatar Jun 18 '17 04:06 unleashit

Same thing here, it mainly happens over ssh for me. I'm using ZSH locally but it also happens even if I disable zsh and use bash/sh.

I'm OSX if that matters.

OmgImAlexis avatar Jun 26 '17 00:06 OmgImAlexis

Any update on this? The bug is still closed, but obviously folks on multiple platforms are still hitting it.

cfjedimaster avatar Jun 29 '17 20:06 cfjedimaster

@CodeTheory could this please be reopened?

OmgImAlexis avatar Jun 30 '17 00:06 OmgImAlexis

Thanks for the mention @OmgImAlexis.

We're currently in the process of switching out hterm for xterm.js and I think hterm is the cause of this issue. Will ask if that switch out fixes this when there's more progress.

cc @chabou @rauchg @ppot

Also, for the record, I can't reproduce the issue.

timothyis avatar Jun 30 '17 00:06 timothyis

The easiest way I've found to reproduce it is ssh to a server and just cat a binary file. It should throw the RAM usage to 1GB+ and essentially freeze to the point of a crash.

OmgImAlexis avatar Jun 30 '17 00:06 OmgImAlexis

If it helps, I've recently found that I have the same issues intermittently with stock WIndows 10 bash.exe when called inside a wrapper or emulator. Those would be PhpStrorm with C:\Windows\System32\bash.exe as the terminal, Conemu with the same. With the stock WSL bash terminal or git bash, there are never any issues.

Interestingly, the problem doesn't happen in Visual Studio Code when Bash is linked to via Sysnative: "C:\WINDOWS\Sysnative\bash.exe"

As far as I know Sysnative is some sort of routing alias that determines whether to launch a 32 or 64 bit version of the exe. I tried using that path in both Hyper and PhpStorm but both editors just crash.

So now I'm inclined to think Hyper isn't the root of (at least my) problems. Maybe not Windows Bash either, if this is the same (and it looks the same) as the issues that Mac users are having. For me it's very strange because intermittently it will work fine for awhile. I could very well be doing something something doesn't like in my .bashrc or .bash_profile. I'm not a bash expert but as soon as I have enough time (not much ATM), I'll experiment by resetting everything to the default. Drives me nuts, because I was just starting to get into using Bash on Windows...

unleashit avatar Jun 30 '17 03:06 unleashit