Closed c-cube closed 4 years ago
Hi, I will try tool into it this week, I will update you.
preview of the "center" feature in this PR (along with bugfixes on master):
+---------------------------------------+
|the center of the triangle is | |
|-------------------------------------+-|
| | |
| | |
| | |
| | |
| | |
| | |
| |t|
| lil' ol' me |a|
| |l|
| |l|
| | |
| | |
| | |
| | |
| | |
| | |
|-------------------------------------+-|
| i'm aligned right| |
|-------------------------------------+-|
|loooooooooooooooooooooooooooooooooong| |
+---------------------------------------+
+----------+
|name1| foo|
|-----+----|
| 1|true|
+----------+
+-----------------------------+
|a |looooooooooooooooooooooooo|
| |oonng |
|--+--------------------------|
|bx| +---+|
| | |x|y||
| | |-+-||
| | |1|2||
| | +---+|
+-----------------------------+
+------------------------------------+
|nice unicode! 💪 |
|------------------------------------|
|+----------------------------------+|
||oï ωεird nums:|+-----------------+||
||Ï€/2 ||+---------------+|||
||Ï„/4 |||+-------------+||||
||--------------||||sum=Σ_i a·xᵢ²|||||
|| ||||————— |||||
|| ||||1+1 |||||
|| 0 ||||-------------|||||
|| `+- 1 |||| Ōₒ|||||
|| +- ω |||| À |||||
|| `+- ω² |||+-------------+||||
|| ||+---------------+|||
|| |+-----------------+||
|+----------------------------------+|
+------------------------------------+
should be all good. @grayswandyr did you have time to take a look? :)
I started but I'll only be able to to do it during this week-end. If it's not too long for you...
That's ok, there's no hurry, and @Gbury is also reviewing the rendering code :)
I have to adapt my code because I used to massage a string array before converting it into a grid
. I need to refactor the code to be able to use the styling options (as a t
is abstract, I can't apply styling options if the underlying string is equal to some thing).
Note that there's now grid_l
if you prefer lists :-)
The API is a bit richer now.
Hi
from what I tested (in particular applying font styles and init_grid
), everything was OK. Cool. Thanks!
cc @grayswandyr please give it a try. It only works on the text part (line,lines,text)