Closed vanillajonathan closed 3 years ago
Hi @vanillajonathan Unlucky currently we don't support box-drawing characters, but I will try to implement it in future when I have more time. Thank you for your suggestion. btw, if you have PR, I will be very happy to accept it
Check out #7
@spreedated thank you, I'm reviewing it, LGTM
I think the solution to support this feature is we have to define a map of 'char' of delimiter and divider, like top left, top middle, top right ... by that way developer can enter whatever they want, here are positions.
By creating a map we can support these formats
Good point, we can support this plus adding some predefined "styles"? I doubt people like to map everytime, however the "map" idea is good :)
plus adding some predefined "styles"
yes we will "pre-define" current formats like Markdown, Alternative, FrameDoublePip... using the map
This is map I think
Not: we also should try to open a way that help developer overwrite existed "Format defination", so we can support table header which has difference style, like this
╔═════════════╗
║ I Am Header ║
╠═════════════╣
║ xyz ║
╟─────────────╢
║ xyz ║
╙─────────────╜
WIP
Maybe it would be nice if the first row (the header row), the one containing Name, Position, Office, Age, and Start Date had a double line under it and the second row (the first real data row).
@vanillajonathan you mean like this ?
I'm working on it, almost done, I'm waiting PR from @spreedated to avoid conflict
@minhhungit Yes! 👍
Now imagine if the header text (Name, Position, Office, Age, and Start Date) could be written in a different foreground color using the ConsoleColor
enum.
Console.ForegroundColor = ConsoleColor.White;
Console.Write("Name");
Console.ResetColor();
Console color is a bit problematic, since not all consoles support this and there are different colorcodes, and you get those codes into your string output, e.g. Debug.Print or just string data to be saved in logfiles etc. - however, make it optional is always a good idea :)
version 3.0.0 is released, now we support box-drawing character, thanks all !
It could print the table using box-drawing characters.