aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/termptygfx.c
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2018-03-13 09:15:32 +0100
committerBoris Faure <billiob@gmail.com>2018-03-13 09:15:32 +0100
commit9e0243d9f16f13b3bc2449b551aefd0d8a4da81e (patch)
treed300b24c295403ce28e01ca64eb2252344c898af /src/bin/termptygfx.c
parentshift-selection: reduce timeout to 5s, seems enough. Ref T2254 (diff)
downloadterminology-9e0243d9f16f13b3bc2449b551aefd0d8a4da81e.tar.gz
support encircled escape code. Closes https://phab.enlightenment.org/T6769
Diffstat (limited to 'src/bin/termptygfx.c')
-rw-r--r--src/bin/termptygfx.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/bin/termptygfx.c b/src/bin/termptygfx.c
index 79dee37..afb7115 100644
--- a/src/bin/termptygfx.c
+++ b/src/bin/termptygfx.c
@@ -60,5 +60,22 @@ _termpty_charset_trans(const Termpty *ty, Eina_Unicode g)
g += 0x1d504 - 'A';
}
}
+ else if (ty->termstate.att.encircled)
+ {
+ if (g >= 'a' && g <= 'z')
+ {
+ g += 0x24d0 - 'a';
+ }
+ else if (g >= 'A' && g <= 'Z')
+ {
+ g += 0x24b6 - 'A';
+ }
+ else if (g >= '1' && g <= '9')
+ {
+ g += 0x2460 - '0';
+ }
+ else if (g == '0')
+ g = 0x24ea;
+ }
return g;
}