#!/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 \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