tsm: vte: fix g0-g3 character-set shifting
authorDavid Herrmann <dh.herrmann@gmail.com>
Wed, 6 Mar 2013 10:12:47 +0000 (11:12 +0100)
committerDavid Herrmann <dh.herrmann@gmail.com>
Wed, 6 Mar 2013 10:12:47 +0000 (11:12 +0100)
commite4d25266b08f56953bd53587f1509ec1d1b64375
tree3f55c319b3200e39f74bd635d593a638d6174290
parente668e9b6cc241d430a26a604ed9ada1737a63d8a
tsm: vte: fix g0-g3 character-set shifting

A terminal's GL and GR sets can be mapped to 4 different registers g0 to
g3. The g0-g3 registers can be freely set by the application to predefined
or uploaded character-sets.

We implemented GL and GR as separate registers that are set to the current
g0-g3 states when the applications requests a remapping. So subsequent
changes to g0-g3 don't affect GL and GR. Unfortunately, it turns out this
is wrong. GL and GR should point to the g0-g3 registers instead of copying
them.

This commit fixes the GL and GR pointers to point to g0-g3 instead of
pointing to the underlying character sets. This fixes line-drawing
applications like alsamixer, make-menuconfig and other ncurses based
software.

Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
src/tsm_vte.c