Skip to content

Instantly share code, notes, and snippets.

@stephen-hannam
Last active August 3, 2020 23:58
Show Gist options
  • Save stephen-hannam/a4725b7a33fee8ab1634470a92bf7c70 to your computer and use it in GitHub Desktop.
Save stephen-hannam/a4725b7a33fee8ab1634470a92bf7c70 to your computer and use it in GitHub Desktop.
Show us dem funky unix box characters

UNIX Box Chars Like a Scamp

#!/bin/bash

on='\x1b(0' # Esc ( 0
off='\x1b(B' # Esc ( B

for i in 6a 6b 6c 6d 6e 71 74 75 76 77 78; do
  printf "0x$i \x$i $on\x$i$off\n"
done

Looks like

0x6a j ┘
0x6b k ┐
0x6c l ┌
0x6d m └
0x6e n ┼
0x71 q ─
0x74 t ├
0x75 u ┤
0x76 v ┴
0x77 w ┬
0x78 x │
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment