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

Display Issues on Windows 10 (garbage characters) #85

Closed
jednano opened this issue Aug 19, 2016 · 12 comments
Closed

Display Issues on Windows 10 (garbage characters) #85

jednano opened this issue Aug 19, 2016 · 12 comments
Labels
Milestone

Comments

@jednano
Copy link

jednano commented Aug 19, 2016

On Windows 10, I'm having display issues in the Command Prompt, PowerShell and different issues in Git Bash. Garbage characters are affecting the display, which you can see in the screenshots below.

Related issues

Windows 10 Command Prompt

image

Windows 10 PowerShell

image

Git Bash on Windows 10

image

Steps to reproduce the problem
  1. Ensure you do not have a TERM environment variable set. Note: setting TERM=windows-ansi fixes the problem in the Command Prompt as well as PowerShell, but not Git Bash. Also, I don't see this as a long-term solution.

Please provide a gist of relevant files

https://gist.github.com/jedmao/19cd1eef1b830d53a7857e00b5e30f5a

More Details

Note: a console.log before these lines in blessed shows the following in Windows Command Prompt:

options.terminal: undefined
options.term: undefined
process.env.TERM: cygwin
process.platform: win32
@kenwheeler kenwheeler added the Bug label Aug 22, 2016
@jednano
Copy link
Author

jednano commented Aug 22, 2016

@danielverejan windows-ansi in Git Bash didn't work for me.

@jednano
Copy link
Author

jednano commented Aug 23, 2016

No. I have not.

@signothefish
Copy link

I had the same window appearance as W10 Command Prompt and W10 Power Shell in Putty using UTF-8 encoding. After switching it to ISO-8859-1, the dashboard looks correct.

@LINALIN1979
Copy link

@signothefish you are the man! I tried your method to change W8.1 Command Prompt's code page to 437 (United States) and it works. For people who want to try, I suggest to set code page in .bat because it won't change the default code page of command prompt. Here is my .bat for reference

@echo off
call chcp 437
call npm run server.js
pause

@neutraali
Copy link

Without delving too deep into the code / related tech, some of these issues could potentially be solved if we had the option of getting the output as UTF-8 -encoded instead of ANSI.

@amokrushin
Copy link

@signothefish, maybe that solution will be helpful for PuTTY:
W10 PuTTY, remote host Ubuntu 16.04

Window -> Translation -> Remote character set = UTF-8
Window -> Translation -> Handling of line drawing characters = Use unicode line drawing code points

clipboard04

export NCURSES_NO_UTF8_ACS=1

clipboard02

export LC_ALL=en_US.utf8

clipboard03

@amilajack
Copy link

What are thoughts on migrating to https://github.com/Yomguithereal/react-blessed?

@jednano
Copy link
Author

jednano commented Mar 7, 2017

@amilajack it's already using blessed, but this is a webpack dashboard, not necessarily anything to do with React.

@kenwheeler
Copy link
Contributor

@amilajack I started with react-blessed, but the feature set required dropping down to regular blessed

@alexgorbatchev
Copy link

      LC_ALL: en_US.utf8
      NCURSES_NO_UTF8_ACS: 1

gave me the best results in ConEmu on Windows 10 with webpack-dashboard running inside docker container.

@kenwheeler kenwheeler added this to the 2.0 milestone Jan 15, 2018
@ryan-roemer
Copy link
Member

No recent activity after the workarounds above were posted, so closing. Please feel free anyone to open document PRs if useful, or new issues if there's something in webpack-dashboard@^2 that we should fix. Thanks!

@ChuckJonas
Copy link

vscode recently started doing this for me... If I run it in terminal (osx) I don't have any issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

10 participants