simon-git: putty (master): Simon Tatham

Commits to Tartarus hosted VCS tartarus-commits at lists.tartarus.org
Sat Sep 30 18:25:05 BST 2017


TL;DR:
  581dd70 Squash the 256-colour test text into fewer lines.
  a4cbd3d Support ESC[38;2;R;G;Bm for 24-bit true colour.

Repository:     https://git.tartarus.org/simon/putty.git
On the web:     https://git.tartarus.org/?p=simon/putty.git
Branch updated: master
Committer:      Simon Tatham <anakin at pobox.com>
Date:           2017-09-30 18:25:05

commit 581dd7071ea5131408420654808388ca7c42b3a2
web diff https://git.tartarus.org/?p=simon/putty.git;a=commitdiff;h=581dd7071ea5131408420654808388ca7c42b3a2;hp=ba4837dae819cffffe36fd6c0985d8df10d2873c
Author: Simon Tatham <anakin at pobox.com>
Date:   Sat Sep 30 17:30:11 2017 +0100

    Squash the 256-colour test text into fewer lines.
    
    I'm about to want to add more stuff to that file, and it would be nice
    to have it still fit on a screen after I do.

 testdata/colours.txt | 24 ++++++++----------------
 1 file changed, 8 insertions(+), 16 deletions(-)

commit a4cbd3dfdb71d258e83bbf5b03a874c06d0b3106
web diff https://git.tartarus.org/?p=simon/putty.git;a=commitdiff;h=a4cbd3dfdb71d258e83bbf5b03a874c06d0b3106;hp=581dd7071ea5131408420654808388ca7c42b3a2
Author: Simon Tatham <anakin at pobox.com>
Date:   Sat Sep 30 17:32:32 2017 +0100

    Support ESC[38;2;R;G;Bm for 24-bit true colour.
    
    This is a heavily rewritten version of a patch originally by Lorenz
    Diener; it was tidied up somewhat by Christian Brabandt, and then
    tidied up more by me. The basic idea is to add to the termchar
    structure a pair of small structs encoding 24-bit RGB values, each
    with a flag indicating whether it's turned on; if it is, it overrides
    any other specification of fg or bg colour for that character cell.
    
    I've added a test line to colours.txt containing a few example colours
    from /usr/share/X11/rgb.txt. In fact it makes quite a good demo to run
    the whole of rgb.txt through this treatment, with a command such as
    
      perl -pe 's!^\s*(\d+)\s+(\d+)\s+(\d+).*$!\e[38;2;$1;$2;$3m$&\e[m!' rgb.txt

 LICENCE              |   3 +-
 fuzzterm.c           |   4 +-
 putty.h              |  28 ++++++++++-
 terminal.c           | 129 +++++++++++++++++++++++++++++++++++++++++++++++----
 terminal.h           |   2 +
 testdata/colours.txt |   1 +
 unix/gtkwin.c        |  38 ++++++++++++---
 windows/window.c     |  33 +++++++------
 8 files changed, 204 insertions(+), 34 deletions(-)



More information about the tartarus-commits mailing list