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

weird character ESC[112 show up every time I run a command. #188

Open
jdhao opened this issue Sep 11, 2021 · 6 comments
Open

weird character ESC[112 show up every time I run a command. #188

jdhao opened this issue Sep 11, 2021 · 6 comments

Comments

@jdhao
Copy link

jdhao commented Sep 11, 2021

I am using windterm to connect to a remote server. I am using zsh for the remote server. Each time I run a command, I see weird character ESC]112 appear after the command.

Edit: I suspect this is due to incomplete support for xterm escape sequences because I can connect to the server via zoc terminal or xshell. I see no such issues.

@kingToolbox
Copy link
Owner

Sorry for the late reply. I just finished a long trip, and because there is no Internet, I can't deal with the issue in time.

You are right. This is just because the control sequence ESC]112 is not yet supported. WindTerm will support this in the next version 2.2.0. Thank you.

@kingToolbox
Copy link
Owner

The new WindTerm_2.2.0_Prerelease_4 version has been released and OSC 112 is supported, please download and check it, thank you.

@Nova38
Copy link

Nova38 commented Nov 8, 2021

How do we enable it? I am trying to use windterm to connect to a serial port and it is not escaping the colors. Here is the settings for the session
image

and here is what the serial output ends up looking like
image

@kingToolbox
Copy link
Owner

There is no problem with the configuration, but from the screenshots, I don’t think the server outputs the correct SGR control sequence of colors. The correct SGR control sequence should \033[m or \x1b[0m, but there is no ESC in the screenshot. Can other clients like PuTTY display colors correctly?

If there is a problem, it may be that ESC is incorrectly parsed by WindTerm.

@Nova38
Copy link

Nova38 commented Nov 8, 2021

image

I have tired putty and mobaxterm and they both display the colors correctly.

@kingToolbox
Copy link
Owner

Yes, from the screenshot, PuTTY should indeed receive ESC. Can you collect the debug log for further analysis? If possible, the steps are as follows:

  • Open the Keyboard session.
  • Use the second button on the toolbar to disconnect the session.
  • Check the menu item Menubar - Mode (7) - Debug Mode.
  • Use the third button on the toolbar to reconnect the session.
  • When the output is complete, uncheck the menu item Menubar - Mode (7) - Debug Mode.
  • Click the menu item Right click menu - Log - Open Log Folder.
  • Open the folder debug and paste your log file in your comment here. You can zip it before upload.

The log content is in plain text and will not contain any private information. You can use any editor to view it. Thank you.

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

No branches or pull requests

3 participants