terminal: fix up horizontal scan-line characters
authorDavid Herrmann <dh.herrmann@googlemail.com>
Tue, 29 May 2012 07:37:01 +0000 (09:37 +0200)
committerKristian Høgsberg <krh@bitplanet.net>
Tue, 29 May 2012 13:54:50 +0000 (09:54 -0400)
The DEC special graphics set defines entries 0x6f to 0x73 to be:
  Horizontal Scan Line 1
  Horizontal Scan Line 3
  Horizontal Scan Line 5
  Horizontal Scan Line 7
  Horizontal Scan Line 9
However, the first Unicode drafts included only Scan-Line 5. Since
Unicode-3.2 the other Scan-Lines were added and are available in most
Unicode fonts now.

The codes are listed here:
  http://www.fileformat.info/info/unicode/block/miscellaneous_technical/images.htm?start=9089
Or more precisely:
  Scan 1: http://www.fileformat.info/info/unicode/char/23ba/index.htm
  Scan 3: http://www.fileformat.info/info/unicode/char/23bb/index.htm
  Scan 7: http://www.fileformat.info/info/unicode/char/23bc/index.htm
  Scan 9: http://www.fileformat.info/info/unicode/char/23bd/index.htm
Scan 5 is kept the same as before as it wasn't added separately and was
already correct before.

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
clients/terminal.c

index 32648dd..a3c806e 100644 (file)
@@ -195,11 +195,11 @@ static struct char_sub CS_SPECIAL[] = {
        {{{'l', 0, }}, {{0xE2, 0x94, 0x8C, 0}}}, /* CN_LT */
        {{{'m', 0, }}, {{0xE2, 0x94, 0x94, 0}}}, /* CN_RB */
        {{{'n', 0, }}, {{0xE2, 0x94, 0xBC, 0}}}, /* CROSS */
-       {{{'o', 0, }}, {{0xE2, 0x94, 0x80, 0}}}, /* H */
-       {{{'p', 0, }}, {{0xE2, 0x94, 0x80, 0}}}, /* H */
-       {{{'q', 0, }}, {{0xE2, 0x94, 0x80, 0}}}, /* H */
-       {{{'r', 0, }}, {{0xE2, 0x94, 0x80, 0}}}, /* H */
-       {{{'s', 0, }}, {{0xE2, 0x94, 0x80, 0}}}, /* H */
+       {{{'o', 0, }}, {{0xE2, 0x8E, 0xBA, 0}}}, /* Horiz. Scan Line 1 */
+       {{{'p', 0, }}, {{0xE2, 0x8E, 0xBB, 0}}}, /* Horiz. Scan Line 3 */
+       {{{'q', 0, }}, {{0xE2, 0x94, 0x80, 0}}}, /* Horiz. Scan Line 5 */
+       {{{'r', 0, }}, {{0xE2, 0x8E, 0xBC, 0}}}, /* Horiz. Scan Line 7 */
+       {{{'s', 0, }}, {{0xE2, 0x8E, 0xBD, 0}}}, /* Horiz. Scan Line 9 */
        {{{'t', 0, }}, {{0xE2, 0x94, 0x9C, 0}}}, /* TR */
        {{{'u', 0, }}, {{0xE2, 0x94, 0xA4, 0}}}, /* TL */
        {{{'v', 0, }}, {{0xE2, 0x94, 0xB4, 0}}}, /* TU */