Print a non-dynamic element higher than the terminal #949
-
Hello, Example: #include <ftxui/dom/table.hpp>
int main()
{
using namespace std;
using namespace ftxui;
Table table
{
[] ()
{
vector<vector<Element>> cells;
vector<Element> row {text("POSITIVE INTEGERS") | hcenter};
cells.push_back(row);
for (int i = 1; i <= 100; ++i)
{
vector<Element> row {text(to_string(i))};
cells.push_back(row);
}
return cells;
}()
};
table.SelectRow(0).BorderBottom();
table.SelectAll().Border();
table.SelectAll().SeparatorVertical();
// Simple display
ftxui::Element element = table.Render();
Screen screen = Screen::Create(Dimension::Fit(element));
element->Render(screen);
screen.Print();
std::cout << std::endl;
return EXIT_SUCCESS;
} This only prints the 45 first rows. Can't I print the full table? With the 100 rows? |
Beta Was this translation helpful? Give feedback.
Answered by
ArthurSonzogni
Nov 2, 2024
Replies: 1 comment 1 reply
-
Thanks! This is related to issue: Would someone be interested to submit a pull request? Dimension::Fit(element, bool extend_beyond_screen = false) |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
LordWhiro
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks!
This is related to issue:
#572
Would someone be interested to submit a pull request?
I think the API could be: