-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Some control sequences are not rendered properly #1204
Comments
You can see what's being sent to xterm.js by turning on debug mode: term.setOption('debug', true); This will output what's happening to the console. If you can narrow down the particular parts that are failing we can probably identify the issue. |
Thanks for responding. I actually looked through the code and I noticed that the 3 control sequences are on the escape sequences file but i didnt see them actually being used anywhere. Im on my phone at the moment but if I recall they are SOH, US, and CAN. There are some other characters in between but idk what those are. I would offer to do a pull request if someone has a reference to what those are supposed to do. I know CAN is cancel, but I dont know how xterm is supposed to interpret that. Does it just delete the entire line just preceding characters? When I get that same data on actual xterm the entire first line just doesnt render. |
SOH, US and CAN don't seem to be in this document which I essentially treat as a spec http://invisible-island.net/xterm/ctlseqs/ctlseqs.html Also I'm not sure what this escape sequences file to which you are referring. Did you see the output generated by debug mode xterm.js just before the ascii welcome is printed? |
Here are the lines of code I am refering to: xterm.js/src/EscapeSequences.ts Line 14 in adcbb1a
xterm.js/src/EscapeSequences.ts Line 74 in adcbb1a
Looks like CAN is used by the parser so I am not sure why it doesn't do whatever it is supposed to do. Or maybe it is and there are just other characters with problems. xterm.js/src/EscapeSequences.ts Line 60 in adcbb1a
Line 79 in adcbb1a
Line 100 in adcbb1a
Line 151 in adcbb1a
When I run debug and only push the lines in question it just returns the line and then undefined. |
For the password but there are 2 characters followed by SOH. Those 2 characters appear to be getting renderers, I kind of expect this? Does this happen with other terminals? |
This is likely the root cause of #1461, let's close it in favor of that for easier tracking. |
I am not an expert in parsing out ansi control sequences but I did notice there were a few that seemed to just pop up as the missing character.
Here is a screenshot of what I am talking about
At the moment I am testing with some logged data from the server that I have pasted below:
Details
The text was updated successfully, but these errors were encountered: