-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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 messy code #162
Comments
打印日志出现乱码,应该如何恢复,目前没有找到比较好的办法,只能重启会话 |
Thank you. This is a known issue. But I haven't figured out how to deal with it. First of all, not only WindTerm, all clients/terminals usually cannot print binary data directly. In other words, Second, some control sequences define how to switch character ses.
So when the received binary data happens to contain the control sequence to switch the character set, the terminal will switch the character set. Although it is not what the user wants, this is correct. WindTerm set the G1 character set to DEC supplemental graphics according to the standard, so after switching, the characters are displayed as table characters. I will check what is the default G1 character set defined by other terminals. In dealing with binary sequences, WindTerm is indeed a little less robust than other clients. Because unlike other clients that use hard-coded finite automata machines to parse control sequences, WindTerm uses a configurable finite automata machine that makes it very easy to extend terminal emulators ( The solution after the garbled is displayed is also very simple, just enter the |
kingToolbox, 感谢你的解答,因为我喜欢使用WindTerm看日志,你的高亮出路做得很好。但是因为我在调试看日志的时候避免不了程序日志会出现\xf。我是否能修改(terminal/terms/*.term)来解决我实时看日志乱码的问题呢。如果可以能否提供修改的方法。非常感谢你。我将会在公司推广你的软件,让更多同事来使用,因为这是一款非常棒的终端。非常感谢! |
Yes, you can. Because the character set switch is caused by
| (?<ShiftLockingOne> \\x0e) # SO
| (?<ShiftLockingZero> \\x0f) # SI
You will find that Of course, this is only a temporary solution, and the normal character set switching feature will also been removed, such as the table can no longer be drawn correctly. But at least it works, and I will fix this problem in WindTerm_2.2.x version. Please stay tuned, thank you. |
kingToolbox thank you。我找到了临时解决方案。使用awk过滤要输出到终端的\xe,当我打印日志的时候。
这样我就能正常的工作看日志了。 |
If you use the Linux command, you can also try
|
感谢你的建议 |
Hi, I just released WindTerm_2.2.0_Prerelease_1 and added the |
Thank, long-expected |
Ok, this issue has been fixed and will be closed. Welcome to continue submitting new feature requests and bugs, thank you. |
No description provided.
The text was updated successfully, but these errors were encountered: