─ │ ┌ ┬ ┐
┄ ┆ ├ ┼ ┤ ╲ ╱
┈ ┊ └ ┴ ┘
━ ┃ ┏ ┳ ┓ ┏ ┯ ┓ ┏ ┳ ┓ ┏ ┯ ┓
┅ ┇ ┣ ╋ ┫ ┣ ┿ ┫ ┠ ╂ ┨ ┠ ┼ ┨
┉ ┋ ┗ ┻ ┛ ┗ ┷ ┛ ┗ ┻ ┛ ┗ ┷ ┛ ─ │ ┌ ┬ ┐
┄ ┆ ├ ┼ ┤ ╲ ╱
┈ ┊ └ ┴ ┘
━ ┃ ┏ ┳ ┓ ┏ ┯ ┓ ┏ ┳ ┓ ┏ ┯ ┓
┅ ┇ ┣ ╋ ┫ ┣ ┿ ┫ ┠ ╂ ┨ ┠ ┼ ┨
┉ ┋ ┗ ┻ ┛ ┗ ┷ ┛ ┗ ┻ ┛ ┗ ┷ ┛(I use a Compose key for almost all character composition, with plenty of custom mappings in my ~/.XCompose, but box drawing specifically I have skipped and use Vim digraphs, and so drop into Vim any time I want to write any.)
Also, I tend to jump a lot between editors/IDEs nowadays so I prefer workflows that don't depend on a specific tool.
I now want to add table characters like these, just need to come up with a good naming convention…
[0]: https://support.apple.com/en-gb/guide/mac-help/mh35735/12.0/...
Here an excerpt. Of course, it's not _necessary_ to do it like that. It's just flavor.
┏━━━━━━━━━━━━━━━━┯━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━┯━━━━━━━━━━━━━━┳┅┅
┃ Chunk 1 Header │ Chunk 1 Body ┃ Chunk 2 Header │ Chunk 2 Body ┃
┗━━━━━━━━━━━━━━━━┷━━━━━━━━━━━━━━┻━━━━━━━━━━━━━━━━┷━━━━━━━━━━━━━━┻┅┅
Chunk Header:
┌───────────┬─────────────────┐
│ Magic Nr. │ Chunk Body Size │
│ 4 Byte │ 4 Byte │
└───────────┴─────────────────┘EG the TI bq25155[1] battery charge controller PCHRGCTRL register (page 52) is divided into 3 fields. It can be quite helpful to show the layout before code to set the range.
/*
* ┌───────────────┬──────────┬─────────┐
* │ ICHARGE_RANGE │ RESERVED │ IPRECHG │
* │ 7 │ 6-5 | 4-0 |
* └───────────────┴──────────┴─────────┘
* This function sets the precharge current
* and fast-charge current step size the
* nearest 1.25mA (<= 318.75mA) or
* 2.5mA (<= 500mA).
*/
etc, etc.