Skip to content

Instantly share code, notes, and snippets.

@dsample
Last active May 10, 2024 20:47
Show Gist options
  • Star 83 You must be signed in to star a gist
  • Fork 9 You must be signed in to fork a gist
  • Save dsample/79a97f38bf956f37a0f99ace9df367b9 to your computer and use it in GitHub Desktop.
Save dsample/79a97f38bf956f37a0f99ace9df367b9 to your computer and use it in GitHub Desktop.
ASCII art diagrams

ASCI art characters for creating diagrams

Characters:

Single line

  • ASCII code 191 = ┐ ( Box drawing character single line upper right corner )
  • ASCII code 192 = └ ( Box drawing character single line lower left corner )
  • ASCII code 193 = ┴ ( Box drawing character single line horizontal and up )
  • ASCII code 194 = ┬ ( Box drawing character single line horizontal down )
  • ASCII code 195 = ├ ( Box drawing character single line vertical and right )
  • ASCII code 196 = ─ ( Box drawing character single horizontal line )
  • ASCII code 197 = ┼ ( Box drawing character single line horizontal vertical )
  • ASCII code 217 = ┘ ( Box drawing character single line lower right corner )
  • ASCII code 218 = ┌ ( Box drawing character single line upper left corner )
  • ASCII code 179 = │ ( Box drawing character single vertical line )
  • ASCII code 180 = ┤ ( Box drawing character single vertical and left line )

Double line

  • ASCII code 185 = ╣ ( Box drawing character double line vertical and left )
  • ASCII code 186 = ║ ( Box drawing character double vertical line )
  • ASCII code 187 = ╗ ( Box drawing character double line upper right corner )
  • ASCII code 188 = ╝ ( Box drawing character double line lower right corner )
  • ASCII code 200 = ╚ ( Box drawing character double line lower left corner )
  • ASCII code 201 = ╔ ( Box drawing character double line upper left corner )
  • ASCII code 202 = ╩ ( Box drawing character double line horizontal and up )
  • ASCII code 203 = ╦ ( Box drawing character double line horizontal down )
  • ASCII code 204 = ╠ ( Box drawing character double line vertical and right )
  • ASCII code 205 = ═ ( Box drawing character double horizontal line )
  • ASCII code 206 = ╬ ( Box drawing character double line horizontal vertical )

Shading

  • ASCII code 176 = ░ ( Graphic character, low density dotted )
  • ASCII code 177 = ▒ ( Graphic character, medium density dotted )
  • ASCII code 178 = ▓ ( Graphic character, high density dotted )
  • ASCII code 219 = █ ( Block, graphic character )
  • ASCII code 220 = ▄ ( Bottom half block )
  • ASCII code 223 = ▀ ( Top half block )
  • ASCII code 254 = ■ ( black square )
┌───┐
│   │
└───┘

┌───┐  ┌───┐
│   ├──┤   │
└───┘  └───┘

┌───┐
│   │
└─┬─┘
  │
┌─┴─┐
│   │
└───┘

@flysqu
Copy link

flysqu commented Mar 8, 2023

You should add this ┤

@dsample
Copy link
Author

dsample commented Mar 8, 2023

You should add this ┤

@Lop010, Isn't that the last item in the 'Single Line' section?

ASCII code 180 = ┤ ( Box drawing character single vertical and left line )

@tuanchauict
Copy link

tuanchauict commented Jun 4, 2023

Hi,
If you're looking for a tool for drawing with ASCII, MonoSketch is a good option. It's free and Open Source.
The source code is at https://github.com/tuanchauict/MonoSketch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment