diff options
Diffstat (limited to 'terminal-ligature-test.sh')
-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 |