Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • Doesn't work. The same issue if a terminal scrolled. Commented Feb 28, 2021 at 8:24
  • 1
    @F8ER this answer, like all the others, saves an absolute position on the screen. The absolute position doesn't change just because the text scrolled. Commented Feb 28, 2021 at 8:44
  • Of course, and that's why -1, sorry. This particular answer doesn't include anything explaining it and doesn't resolve the issue of the question. Commented Feb 28, 2021 at 8:56
  • Look at the edit histories. This answer offers clean terminfo rather then messy escape sequences. Both answers address the question, which (still) doesn't mention anything about tracking a position relative to scrolled text Commented Feb 28, 2021 at 9:00