Repository navigation
Conversation
FTXUI's Input draws one row per line, so a long line runs off the side,
and paragraph clips a word wider than the row. :input {:wrap true} draws
the content as the rows it takes at the width the layout gives it,
breaking after a space where it can and inside a word where it cannot;
the box is as tall as its rows within the same frame, and Up/Down and a
click move by those rows. :wrapped is the same layout for plain text,
with whitespace kept.
Only FTXUI's public headers are used, so an installed FTXUI still works.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
FTXUI's Input draws one row per line, so a long line runs off the side, and
paragraphclips a word wider than the row.:input {:wrap true}draws the content as the rows it takes at the width the layout gives it, breaking after a space where it can and inside a word where it cannot. The box is as tall as its rows within the same frame (the element re-lays itself out through Node::Check once it learns its width), and Up/Down and a mouse click move by those rows. Without:wrapthe input is unchanged.:wrappedis the same layout for plain text, whitespace kept.Only FTXUI's public headers are used, so building against an installed FTXUI still works. Tests: 9 new assertions across render_test and dom_test, which fail with wrap off; suite 51/0 locally.