summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Wittamore <philip@wittamore.com>2025-05-29 18:08:32 +0200
committerPhilip Wittamore <philip@wittamore.com>2025-05-29 18:08:32 +0200
commit681ea2ba30d71cb719850f4b8cde62ba4ecba6dd (patch)
tree76a1b039163807089e8f24a56e420f22265736e3
parent28dba7eb80d0a874836ebf86010cfad133b86b08 (diff)
downloadtools-master.tar.gz
tools-master.tar.bz2
tools-master.zip
-rwxr-xr-xterminal-ligature-test.sh6
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