Skip to content

Screen that dumps raw bytes for terminal #681

Answered by ArthurSonzogni
mavam asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @mavam, I think you are describing this function:

std::string ToString(Component& component) {
  auto document = component->render();
  auto screen = Screen::Create(Dimension::Full(), Dimension::Fit(document));
  Render(screen, document);
  return screen.ToString();
}

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@mavam
Comment options

@mavam
Comment options

Answer selected by mavam
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