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

--runx: font type and size of the terminal change #244

Closed
mviereck opened this issue Apr 19, 2020 · 3 comments
Closed

--runx: font type and size of the terminal change #244

mviereck opened this issue Apr 19, 2020 · 3 comments

Comments

@mviereck
Copy link
Owner

Coming from #219
@eine wrote:

I don't know why when x11docker is used the font type and size of the terminal change.

x11docker_wsl_font

it happens if I run runx only. However, it does not happen with x11docker.

@mviereck
Copy link
Owner Author

Yes, it happens if I run runx only. However, it does not happen with x11docker.

runx and x11docker use some escape codes for colored output. Maybe that causes the font changes on MS Windows? However, than it should happen with both of them.

You could try:

  # Terminal colors used for messages and --verbose=c
  Esc="$(printf '\033')"
  Colblue="${Esc}[35m"
  Colyellow="${Esc}[33m"
  Colgreen="${Esc}[32m"
  Colgreenbg="${Esc}[42m"
  Colred="${Esc}[31m"
  Colredbg="${Esc}[41m"
  Coluline="${Esc}[4m"
  Colnorm="${Esc}[0m"

echo "Hello previous world $Colgreen Hello green world $Colnorm Hello normal world"

@eine
Copy link
Contributor

eine commented May 12, 2020

I tried the test you suggested, and it works as expected. No strange font change.

@mviereck
Copy link
Owner Author

I once found that the font change happens even before one line of code is executed.
I admit that I don't feel very encouraged to investigate further as long as this is not a big issue and not basically caused by x11docker itself.
I'll just close unfixed.

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

No branches or pull requests

2 participants