blob: b79024b2271eec2b6f88b1a6423b2e8abd7bbdca (
plain)
1
2
3
4
5
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
|