Skip to content

Conversation

hackerb9
Copy link

This patch adds Ctrl-P to the debug build. It works well enough for that purpose but it could be better. In particular, I should convert it to C++ and fit it to your style.

Since it takes a while for the screenshot, it prints a message in the statusbar while it is working. Currently it hangs on systems which do not understand the VT340's Mediacopy to Host escape sequence.

Does capabilities::_query() handle timeouts when a terminal doesn't respond? I had been using termios in my code, but my understanding is that that doesn't work under Microsoft Windows.

@j4james
Copy link
Owner

j4james commented Mar 29, 2025

I didn't want to bother with adding mediacopy to the debug branch because I wasn't planning on keeping any of the debugging code - it was just there to help track down the issues you were seeing. I'm only going to merge in the actual fixes.

And no, the capabilities::_query() doesn't handle timeouts because it doesn't need them. On queries that have the potential to fail I set the may_not_work parameter to true, and it'll then submit an additional DSR-CPR query that is guaranteed to work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants