simon-git: ipbt (master): Simon Tatham

Commits to Tartarus hosted VCS tartarus-commits at lists.tartarus.org
Mon Aug 28 20:20:17 BST 2017


TL;DR:
  fc9b61e Change the choice of invalid screen[] value.
  a9b4869 Support showing and hiding the cursor.

Repository:     https://git.tartarus.org/simon/ipbt.git
On the web:     https://git.tartarus.org/?p=simon/ipbt.git
Branch updated: master
Committer:      Simon Tatham <anakin at pobox.com>
Date:           2017-08-28 20:20:17

commit fc9b61ec8669079778c29523221bec03bb87749d
web diff https://git.tartarus.org/?p=simon/ipbt.git;a=commitdiff;h=fc9b61ec8669079778c29523221bec03bb87749d;hp=f66cea11ad6a0f1172bd9b8ecde30e190f2db2e6
Author: Simon Tatham <anakin at pobox.com>
Date:   Mon Aug 28 20:16:14 2017 +0100

    Change the choice of invalid screen[] value.
    
    I'm about to use -1 for a different purpose, and in any case it's
    useful to define a properly named macro for any magic value like this
    rather than repeating it more than once in the source.

 ipbt.c | 11 ++++-------
 1 file changed, 4 insertions(+), 7 deletions(-)

commit a9b48697c1b524b79a2abe5a2f8b2d8f7c7c8001
web diff https://git.tartarus.org/?p=simon/ipbt.git;a=commitdiff;h=a9b48697c1b524b79a2abe5a2f8b2d8f7c7c8001;hp=fc9b61ec8669079778c29523221bec03bb87749d
Author: Simon Tatham <anakin at pobox.com>
Date:   Mon Aug 28 20:17:29 2017 +0100

    Support showing and hiding the cursor.
    
    Previously, IPBT tracked the cursor position by intercepting the
    terminal's calls to the front end's sys_cursor function, which is
    really intended to help screen-reader software and doesn't include
    any parameter to say whether the cursor is actually visible.
    
    Now we do it the same way a real screen _redraw_ would: we notice when
    we see one of the TATTR_* cursor attributes in a call to do_text, and
    if we do, that's where the cursor is. And if we get through a whole
    screen redraw without ever seeing that, then the cursor must not
    currently be visible, which we pass on to the display code via
    the curses curs_set() function.
    
    The effect should be that if a tty recording uses ESC[?25l to hide the
    cursor (and also ESC[?25h to unhide it again), then that should be
    reflected during ipbt playback.

 ipbt.c | 18 +++++++++++++-----
 1 file changed, 13 insertions(+), 5 deletions(-)



More information about the tartarus-commits mailing list