Fixes bug 220507.
Libteken would correctly compute the cursor position for a CPR escape sequence ("[6n"), but wouldn't write it back to the TTY device.
Differential D11918
Fix vt(4)'s response to Device Status Report escape sequences smahadevan_freebsdfoundation.org on Aug 7 2017, 8:38 PM. Authored by Tags None Referenced Files
Subscribers
Details
Diff Detail
Event TimelineComment Actions The problem with this change is that I'm not 100% sure this won't cause an infinite amount of recursion in the TTY layer. Basically, this is what's happening: Write to TTY -> Write to struct terminal -> Processed by libteken -> Result pushed back into the TTY. But what if the TTY has echoing enabled? The response will be pushed through the terminal layer once more. For this to work, we'll need to introduce another version of rint() that is guaranteed to ignore echoing. Alternatively, we should add a callout/taskqueue/... to push the response back into the TTY layer asynchronously. Comment Actions
|