Introduce HOOK_TT_READ

Martin von Gagern Martin.vGagern at gmx.net
Fri Aug 17 22:06:38 CEST 2007


Hi!

While investigating my cursor position issues in that Gentoo bug report
about which I wrote recently, I found need to have a look at the raw PTY
conversation between rxvt-unicode and bash. There already exists a
HOOK_TT_WRITE for all data written to the pty, but a corresponding
HOOK_TT_READ was missing, you could only get at interpreted data.

Adding the hook was incredibly easy, however, so if someone is
interested, here is the patch:
http://bugs.gentoo.org/attachment.cgi?id=128430

Currently there is no way for the plugin to consume the event. I haven't
needed this yet. If someone does, it should be possible, although
probably with significantly more work than those two lines I added,
especially if you want to feed a modified version back instead.

By the way, some of the cursor position strangeness seems to come from
the fact that in the termcap file, cub1=^H which is C0_BS and causes
scr_backspace to go back even over linewraps, whereas cuf1=\E[C which
matches CSI_CUF and causes scr_gotorc to clamp the resulting column.
Is this asymmetry intended?

Greetings,
 Martin von Gagern

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
URL: <http://lists.schmorp.de/pipermail/rxvt-unicode/attachments/20070817/7c18db09/attachment.sig>


More information about the rxvt-unicode mailing list