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

Add support for underline ANSI escape code in WebGL Renderer #3691

Closed
2 tasks done
dmohns opened this issue May 24, 2019 · 8 comments
Closed
2 tasks done

Add support for underline ANSI escape code in WebGL Renderer #3691

dmohns opened this issue May 24, 2019 · 8 comments
Labels
👆 Is Upstream Issue is the fault of something Hyper uses and not Hyper itself

Comments

@dmohns
Copy link

dmohns commented May 24, 2019

  • I am on the latest Hyper.app version
  • I have searched the issues of this repo and believe that this is not a duplicate Comment: I believe it is not duplicate of an open issue, see below.
  • OS version and name: MacOS Mojave 10.14.5
  • Hyper.app version: 3.0.2
  • Link of a Gist with the contents of your .hyper.js: N/A
  • Relevant information from devtools : N/A
  • The issue is reproducible in vanilla Hyper.app: yes

Issue

This is a continuation of the closed issue: #3194. Albeit the old issue being closed the problem still exists and is reproducible.

Currently Hyper does not display text decorated with ANSI escape code 4m for underline correctly. I am not sure if this is a bug or feature request. However, a commenter from the old issue suggests this has been supported before and hence, should be classified as a bug. See #3194 (comment)

Reproduce

Run

echo -e "\033[4mhyper\033[m"

Expected result

The output gets underlined. See screenshot from iterm2.

image

Actual result

The output does not get underlined. See screenshot from Hyper.

image

@dmohns
Copy link
Author

dmohns commented May 24, 2019

By going back to an older version of Hyper I was able to confirm: Underline used to work. See screenshot from Hyper Version 2.1.2

image

@Tyriar
Copy link
Contributor

Tyriar commented May 24, 2019

You might be seeing microsoft/vscode#35901

@dmohns
Copy link
Author

dmohns commented May 25, 2019

You might be seeing microsoft/vscode#35901

I think the VS Code issue is related to similiar issues in Hyper about displaying under-scores, see #2812
However, (and as far as I understand) this issue is distinct from the above mentioned.

Note, how in the screenshots for iterm2 and Hyper 2.1.2 y and p reach pretty far down and intersect the underline. If the problem originated from misaligned bounding boxes (similar to the VS Code one), I would expect y and p to be cut off in Hyper 3.0.2. But y and p look properly rendered in 3.0.2.

@dmohns
Copy link
Author

dmohns commented May 25, 2019

I accidentally found a big hint. It looks like the webGLRenderer is causing problems. In fact, if I disable webGLRenderer in .hyper.js the underlines appear. See

image

image

@sobolevn
Copy link

sobolevn commented Jul 17, 2019

Any progress? Still happens to me.

» hyper version
3.0.2

@Tyriar
Copy link
Contributor

Tyriar commented Jul 19, 2019

The webgl renderer doesn't support underline yet xtermjs/xterm.js#2251

@chessturo
Copy link

Still seeing this on 3.0.2

@LabhanshAgrawal LabhanshAgrawal added the 👆 Is Upstream Issue is the fault of something Hyper uses and not Hyper itself label Jun 10, 2021
@LabhanshAgrawal LabhanshAgrawal changed the title Add support for underline ANSI escape code Add support for underline ANSI escape code in WebGL Renderer Jun 10, 2021
@LabhanshAgrawal
Copy link
Collaborator

Working in v3.1.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
👆 Is Upstream Issue is the fault of something Hyper uses and not Hyper itself
Projects
None yet
Development

No branches or pull requests

5 participants