Skip to content

Cols property not getting set and text being overwritten after a certain width is occupied #4505

Answered by jerch
shiv123-max asked this question in Q&A
Discussion options

You must be logged in to vote

From your screencast it looks like you forward real terminal data. This has to come from somewhere, and to have proper terminal semantics with xterm.js you have to go through a PTY on the host system (or conpty with windows). And the size of that PTY has to be in sync with xterm.js' size.

I am not aware of concepts like PTY or TTY...

Not sure what to answer here, beside - then maybe fix that? xterm.js is literally made to run at a PTY, so you wont get far with zero knowledge about that (at least the PTY-master interface mechs, the termios stuff is not important as terminal integrator).

Also see #4488, #4434 (comment), #4436 (comment)

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by Tyriar
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
Converted from issue

This discussion was converted from issue #4502 on May 08, 2023 14:17.