Skip to content
New issue

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

direct mode ought be able to place and discover cursor #382

Closed
dankamongmen opened this issue Feb 23, 2020 · 4 comments
Closed

direct mode ought be able to place and discover cursor #382

dankamongmen opened this issue Feb 23, 2020 · 4 comments
Assignees
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Milestone

Comments

@dankamongmen
Copy link
Owner

While thinking about some things, it became clear that we ought support cursor movement in direct mode. One also ought be able to get the cursor position. For an example of why this would be useful, let me quote HTPwNotcurses:

it is possible to, for instance, periodically acquire the current cursor position, move elsewhere on
the screen, update a HUD, and return to the departure position. Scrolling could be addressed by retaining a copy of any obliterated output. This would suffer a startup period of one screen, during which the area scrolled above the HUD would be cleared. This could be avoided by aligning the HUD with the top of the terminal.

if we actually hacked up such a tool (and see #381), we should definitely run it in the demo somehow.

@dankamongmen dankamongmen added documentation Improvements or additions to documentation enhancement New feature or request labels Feb 23, 2020
@dankamongmen dankamongmen self-assigned this Feb 23, 2020
@dankamongmen
Copy link
Owner Author

DECSTBM (set scrolling region) is kinda perfect for this, though it only lets us specify rows.

@dankamongmen dankamongmen added this to the 1.3.0 milestone Feb 24, 2020
@dankamongmen
Copy link
Owner Author

dankamongmen commented Feb 24, 2020

  • detect terminal geometry in direct mode
  • set cursor position in direct mode
  • discover cursor position in direct mode

@dankamongmen
Copy link
Owner Author

Detecting cursor position is tough, since we need send the Device Status Inquiry, and then read its output. We don't have any active context with which to read said output, though I intend to add one. Going ahead and marking this closed.

@dankamongmen
Copy link
Owner Author

Updated python, readme, man page, C++

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant