Skip to content

How to avoid control characters when replaying history in xterm.js terminal #4869

Answered by jerch
shashimobiux asked this question in Q&A
Discussion options

You must be logged in to vote

Could it be, that you replayed the content on a new terminal, which already was connected to a PTY? If so - dont do that, replay first, then set up the connection to the PTY.
Reason - a complex app like vi would always request some sort of reports, and those requests are contained in the data blob. The terminal will answer that with onData events, which normally get forwarded to the PTY. Not in the replay case - the original response got already handled and is reflected in the followup data. Thus resending the responses to the PTY would be wrong here.

I still recommend to update xtermjs, but why 4.19? Thats also way outdated, current version is 5.3 (note that we dont do backports).

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@shashimobiux
Comment options

@jerch
Comment options

Answer selected by shashimobiux
@shashimobiux
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants