We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It would be nice to have a function like:
rows := table.Rows() fmt.Printf("ROWS=%d\n", rows) // prints the number of rows in the table (including any newlines that the table adds)
I need this function because I have my table rewrite itself, and I need to set the cursor to the correct height, otherwise it wont update correctly.
I can manually count the rows when I append data, but this will only work if the table does not automatically add newlines (and I want the newlines).
EDIT: I see that there is NumLines(), but that does not account for the newlines that the table automatically puts there.
NumLines()
The text was updated successfully, but these errors were encountered:
Return the number of data rows printed when rendering
8a85d9b
- Related to (would fix): olekukonko#191
ffecab3
are you saying the number of new lines is not predictable?
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
It would be nice to have a function like:
I need this function because I have my table rewrite itself, and I need to set the cursor to the correct height, otherwise it wont update correctly.
I can manually count the rows when I append data, but this will only work if the table does not automatically add newlines (and I want the newlines).
EDIT: I see that there is
NumLines()
, but that does not account for the newlines that the table automatically puts there.The text was updated successfully, but these errors were encountered: