diff options
author | Philip Wittamore <philip@wittamore.com> | 2025-05-29 18:08:32 +0200 |
---|---|---|
committer | Philip Wittamore <philip@wittamore.com> | 2025-05-29 18:08:32 +0200 |
commit | 681ea2ba30d71cb719850f4b8cde62ba4ecba6dd (patch) | |
tree | 76a1b039163807089e8f24a56e420f22265736e3 | |
parent | 28dba7eb80d0a874836ebf86010cfad133b86b08 (diff) | |
download | tools-681ea2ba30d71cb719850f4b8cde62ba4ecba6dd.tar.gz tools-681ea2ba30d71cb719850f4b8cde62ba4ecba6dd.tar.bz2 tools-681ea2ba30d71cb719850f4b8cde62ba4ecba6dd.zip |
-rwxr-xr-x | terminal-ligature-test.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/terminal-ligature-test.sh b/terminal-ligature-test.sh new file mode 100755 index 0000000..b79024b --- /dev/null +++ b/terminal-ligature-test.sh @@ -0,0 +1,6 @@ +#!/bin/sh +# Terminal Ligature Test +# This one-liner checks if the terminal (not the code editor) renders ligatures correctly. +# It compiles a simple C++ program that prints common ligature-sensitive operators. + +echo -e '#include <cstdio>\nint main(){const char*s="-> <= >= != == && || << >>";while(*s)putchar(*s++);return 0;}' | gcc -x c++ - -o /tmp/a.out && /tmp/a.out; rm /tmp/a.out
\ No newline at end of file |