-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
PS1="〉" terminal prompt glitches #1156
Comments
Hopefully fixed by #1111 |
@folletto could you try to build Hyper from this branch and try again? |
@folletto but this space provided by UPD: NVM |
With Hyper 1.0.1 (that had #1111 merged) now the prompt has the visual glitch of the space, but at least doesn't break functionality (at least to the extent I tested it). Current 1.0.1 (notice the misplaced space): |
My off-by-one behavoir (seen above in @folletto 's post) was caused when using
I modified NOCOLOR to instead paint text white
Now I'm good. Hope it helps! |
Having the same problem as @folletto with 1.0.1 when spawning a tmux session. Invoking the tmux prompt (C-b :) fixes all preceding lines (shifting them one character to the right again), but when entering a new command it's back to being off to the left by one. Using zsh and powerlevel9k. All space between left and right prompt is also removed. Everything works as expected when not in a tmux session. Icon bug is likely related to #1327 |
#1332 seems to be related to this. But there seems to be something more fundamentally wrong: My PS1 looks like this: Note that the %b (</bold>) occurs before the trailing space. When running outside of TMUX, the generated HTML is: <x-row><span style="color: rgb(0, 186, 19); font-weight: bold;">~</span><span style="font-weight: bold;"> </span><span class=" unicode-node" style="color: rgb(0, 181, 189); font-weight: bold;">λ</span> <span style="color: rgb(239, 41, 41); font-weight: bold;">asdf</span></x-row> However when running inside TMUX, the generated HTML is instead: <x-row><span style="color: rgb(152, 195, 121); font-weight: bold;">~</span><span style="font-weight: bold;"> </span><span class=" unicode-node" style="color: rgb(86, 182, 194); font-weight: bold;">λ</span></x-row> ...until I type a character, it becomes: <x-row><span style="color: rgb(152, 195, 121); font-weight: bold;">~</span><span style="font-weight: bold;"> </span><span class=" unicode-node" style="color: rgb(86, 182, 194); font-weight: bold;">λ </span><span style="color: rgb(224, 108, 117); font-weight: bold;">asdf</span> </x-row> Note that it puts the space within the bold span with the λ character, which is wrong. According to my PS1 string, the space occurs after the bold ends. Another note, even if the string was in the bold markup, this problem would be fixed if #1332 were fixed. |
Oh thank god, I'm not the only one. I'm using the latest (1.2.1.1527) and experiencing this issue when I use TMUX. It's really quite infuriating and works just fine in iTerm. |
This is still occurring with 1.3.1. In fact, tmux use in hyper seems quite broken as even my status bar at the bottom is rending oddly, like the window size isn't being communicated to TMUX properly. |
@jrop I have to agree. I'm continuing to use iTerm for the time being, as I need tmux support in order to work properly. Thank you for pointing out the potential migration to xterm.js, I'll be sure to track it. |
I also have the same issue |
@adworacz My specific issue is gone in version 1.3.3. |
I can't replicate my issue on 1.3.3. At least, not yet. Will keep experimenting, but thank you for fixing the core issue. |
I still keep getting this error on 1.3.3. |
I'm getting the same error in 2.0.0 ... |
Please open a new issue for 2.0 @ultran |
I am on the latest Hyper.app version
I have searched the issues of this repo and believe that this is not a duplicate
macOS 10.12.1
Hyper.app 1.0.0.1303
default .hyper.js
Dev Console error:
__WEBPACK_IMPORTED_MODULE_0_hterm_umdjs__.hterm.TextAttributes.splitWidecharString
(full stack screenshot)
vanilla Hyper
Issue
When I updated to Hyper 1.0 (from a previous 0.x I can't recall, which worked) the prompt looked off. What's worse, some operations didn't work properly either:
I hunted the issue down, and removing piece by piece every element in my custom PS1 prompt, I identified it breaks when I add this character:
〉
.Specifically, the smallest
bash
prompt that breaks is:Might be useful:
The same happens with:
And other random characters:
If I change the prompt to anything else, it works. Similarly, if I keep my prompt but I just remove that character, it works again.
Also: I can't copy paste the above PS1 commands into Hyper either: the paste itself "breaks" at the character.
The text was updated successfully, but these errors were encountered: