[GH-ISSUE #697] Detect end of TextView scrollable area #508

Closed
opened 2026-03-04 01:05:36 +03:00 by kerem · 3 comments
Owner

Originally created by @AuHau on GitHub (Feb 2, 2022).
Original GitHub issue: https://github.com/rivo/tview/issues/697

I would need to detect if a user reached the end of TextView, is that possible? I have not discovered the way. There is half-way solution trying to calculate this using GetScrollOffset() and GetInnerRect() and counting how many lines the TextView has. But if the wrapping is enabled and is in the game then I don't know how to get how many lines the TextView actually has as I don't have access to its index.

Originally created by @AuHau on GitHub (Feb 2, 2022). Original GitHub issue: https://github.com/rivo/tview/issues/697 I would need to detect if a user reached the end of `TextView`, is that possible? I have not discovered the way. There is half-way solution trying to calculate this using `GetScrollOffset()` and `GetInnerRect()` and counting how many lines the `TextView` has. But if the wrapping is enabled and is in the game then I don't know how to get how many lines the `TextView` actually has as I don't have access to its `index`.
kerem closed this issue 2026-03-04 01:05:37 +03:00
Author
Owner

@rivo commented on GitHub (Nov 13, 2022):

Apologies for the late reply. Is this still relevant? Yes, I realize there is currently no way to check for this. Let me know if you still need it.

<!-- gh-comment-id:1312770133 --> @rivo commented on GitHub (Nov 13, 2022): Apologies for the late reply. Is this still relevant? Yes, I realize there is currently no way to check for this. Let me know if you still need it.
Author
Owner

@AuHau commented on GitHub (Nov 14, 2022):

I'm not actively working on the original project, but as you said tview lack this capability.

<!-- gh-comment-id:1313723821 --> @AuHau commented on GitHub (Nov 14, 2022): I'm not actively working on the original project, but as you said tview lack this capability.
Author
Owner

@rivo commented on GitHub (Nov 15, 2022):

Given my limited time, I have to choose what to work on and need to focus on the most important features.

I will close this for now. If this topic becomes relevant again, you (or someone else) can open a new issue, preferably referencing this one.

<!-- gh-comment-id:1315450947 --> @rivo commented on GitHub (Nov 15, 2022): Given my limited time, I have to choose what to work on and need to focus on the most important features. I will close this for now. If this topic becomes relevant again, you (or someone else) can open a new issue, preferably referencing this one.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/tview#508
No description provided.