Skip to content

Get All terminal content #4467

Answered by jerch
bajrangCoder asked this question in Q&A
Apr 5, 2023 · 4 comments · 7 replies
Discussion options

You must be logged in to vote

Unless you want to write a terminal recorder, invoking the serializer on every incoming chunk of data is def. the wrong approach. And even for a terminal recorder that is most likely not the best way to do things, as it will re-serialize higher up lines over and over creating very bad runtime.

after some research i found that serializer send data row wise .

Not sure what you mean by that. The serializer walks the buffer cells line-wise yes, but it creates a full dump of the buffer content in a single string. The string is meant to restore most of the terminal state at the time of serialization, thus will contain multiple lines, if there were more than a single line.

Your code above look…

Replies: 4 comments 7 replies

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
3 replies
@jerch
Comment options

jerch Apr 9, 2023
Maintainer

Answer selected by Tyriar
@bajrangCoder
Comment options

@bajrangCoder
Comment options

Comment options

You must be logged in to vote
4 replies
@jerch
Comment options

@bajrangCoder
Comment options

@jerch
Comment options

@bajrangCoder
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