Last active
April 29, 2024 11:47
-
-
Save aaabramov/90ec8a3ddfe7ac06ae387a00d02ae555 to your computer and use it in GitHub Desktop.
Drawing tables (boxes) using UTF-8 symbols
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
┏━━━━━━┳━━━━━━┓ ┏━━━━━━┯━━━━━━┓ ┌──────┬──────┐ ╔══════╦══════╗ | |
┃ col1 ┃ col2 ┃ ┃ col1 │ col2 ┃ │ col1 │ col2 │ ║ col1 ║ col2 ║ | |
┣━━━━━━╋━━━━━━┫ ┠──────┼──────┨ ├──────┼──────┤ ╠══════╬══════╣ | |
┃ val1 ┃ val2 ┃ ┃ val1 │ val2 ┃ │ val1 │ val2 │ ║ val1 ║ val2 ║ | |
┗━━━━━━┻━━━━━━┛ ┗━━━━━━┷━━━━━━┛ └──────┴──────┘ ╚══════╩══════╝ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
─ | |
━ | |
│ | |
┃ | |
┄ | |
┅ | |
┆ | |
┇ | |
┈ | |
┉ | |
┊ | |
┋ | |
┌ | |
┍ | |
┎ | |
┏ | |
┐ | |
┑ | |
┒ | |
┓ | |
└ | |
┕ | |
┖ | |
┗ | |
┘ | |
┙ | |
┚ | |
┛ | |
├ | |
┝ | |
┞ | |
┟ | |
┠ | |
┡ | |
┢ | |
┣ | |
┤ | |
┥ | |
┦ | |
┧ | |
┨ | |
┩ | |
┪ | |
┫ | |
┬ | |
┭ | |
┮ | |
┯ | |
┰ | |
┱ | |
┲ | |
┳ | |
┴ | |
┵ | |
┶ | |
┷ | |
┸ | |
┹ | |
┺ | |
┻ | |
┼ | |
┽ | |
┾ | |
┿ | |
╀ | |
╁ | |
╂ | |
╃ | |
╄ | |
╅ | |
╆ | |
╇ | |
╈ | |
╉ | |
╊ | |
╋ | |
╌ | |
╍ | |
╎ | |
╏ | |
═ | |
║ | |
╒ | |
╓ | |
╔ | |
╕ | |
╖ | |
╗ | |
╘ | |
╙ | |
╚ | |
╛ | |
╜ | |
╝ | |
╞ | |
╟ | |
╠ | |
╡ | |
╢ | |
╣ | |
╤ | |
╥ | |
╦ | |
╧ | |
╨ | |
╩ | |
╪ | |
╫ | |
╬ | |
╭ | |
╮ | |
╯ | |
╰ | |
╱ | |
╲ | |
╳ | |
╴ | |
╵ | |
╶ | |
╷ | |
╸ | |
╹ | |
╺ | |
╻ | |
╼ | |
╽ | |
╾ | |
╿ |
do have the shell code that actually prints the tables? This should be an option for column
or something.
do have the shell code that actually prints the tables? This should be an option for
column
or something.
Unfortunately, I don't.
But you can take a look at this awesome Golang library: https://github.com/olekukonko/tablewriter
Thanks. Python's PrettyTable is also something I've been looking at.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Prepared in the scope of posting https://aaabramov.medium.com/drawing-tables-boxes-using-utf-8-symbols-d7208e8c3f3e