Is it possible to get the character in a specific cell? #5040
-
Let's say I want to know the content of the cell at a certain row and col. How woul I do that? Is it even possible? |
Beta Was this translation helpful? Give feedback.
Answered by
jerch
Apr 21, 2024
Replies: 2 comments
-
Yes it is possible, e.g. Also see Lines 1463 to 1699 in 1709d44 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
jerch
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes it is possible, e.g.
term.buffer.active.getLine(0).getCell(0).getChars()
would give you the characters at cell [0, 0] on the active buffer.Also see
xterm.js/typings/xterm.d.ts
Lines 1463 to 1699 in 1709d44