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

ANSI escapes shown as question marks when output from Java #2905

Closed
2 tasks done
phantamanta44 opened this issue Apr 23, 2018 · 3 comments
Closed
2 tasks done

ANSI escapes shown as question marks when output from Java #2905

phantamanta44 opened this issue Apr 23, 2018 · 3 comments
Labels
👆 Is Upstream Issue is the fault of something Hyper uses and not Hyper itself

Comments

@phantamanta44
Copy link

phantamanta44 commented Apr 23, 2018

  • I am on the latest Hyper.app version

  • I have searched the issues of this repo and believe that this is not a duplicate

  • OS version and name: Windows 10 on MSYS2

  • Hyper.app version: 2.0.0

  • Link of a Gist with the contents of your .hyper.js: https://gist.github.com/phantamanta44/d8e41084f326b2620e88d77086119267

  • Relevant information from devtools (CMD+ALT+I on macOS, CTRL+SHIFT+I elsewhere): N/A

  • The issue is reproducible in vanilla Hyper.app: Probably; occurs when two installed plugins are disabled.

Issue

ANSI escapes in output from Java are printed as question marks:

The Java version in particular is HotSpot 64-bit 1.8.0_161-b12.

ANSI escapes seem to work in general, as shown by running a simple echo:

And oddly enough, they seem to work in the Java program when xargs'd through echo or piped through a no-op sed:

This is my bashrc if relevant: https://github.com/sapegin/dotfiles/blob/dd063f9c30de7d2234e8accdb5272a5cc0a3388b/includes/bash_prompt.bash

@phantamanta44 phantamanta44 changed the title ANSI escapes ANSI escapes shown as question marks when output from Java Apr 23, 2018
@Stanzilla
Copy link
Contributor

Hey there, could you test this in the Visual Studio Code terminal, please? If it has the same issue, then it is xtermjs/xterm.js#1395

@Stanzilla Stanzilla added the 👆 Is Upstream Issue is the fault of something Hyper uses and not Hyper itself label Apr 23, 2018
@jerch
Copy link

jerch commented Apr 24, 2018

@phantamanta44 :
Does System.out.printf("\u001b[mHi there!") work for you? Imho thats not a bug in xterm.js either but related to the way winpty gets the underlying console content: since you do two distinct System.out... calls, the first gets printed to the console before the second has landed, thus winpty sees only a single ESC char at a certain time.

@phantamanta44
Copy link
Author

Printing in one statement:

Also seems to occur in VSCode:

Then I'll just assume it's xtermjs/xterm.js#1395

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

3 participants