Commit Graph
15 Commits
Author SHA1 Message Date
Christian Muehlhaeuser 0c4f259f6a Keep errors lowercase 2019-12-10 18:17:29 +01:00
Christian Muehlhaeuser 897b2dbd1e Decouple render elements from blackfriday parser 2019-12-07 18:48:08 +01:00
Christian Muehlhaeuser 665477d690 Move stateful objects to RenderContext struct 2019-12-07 15:40:42 +01:00
Christian Muehlhaeuser a0cc8eba36 Add template helper functions 2019-12-07 10:02:00 +01:00
Christian Muehlhaeuser 7ef8fa55d1 Render prefix & suffix in the current block's style 2019-12-07 09:27:31 +01:00
Christian Muehlhaeuser 72978312ce Support format strings in style elements 2019-12-07 09:27:12 +01:00
Christian Muehlhaeuser 7eec968514 Construct one combined true-color ANSI sequence for foreground and background colors 2019-12-05 20:46:05 +01:00
Christian Muehlhaeuser 78e36a02d0 Use ElementStyle as a value instead of pointer, so we can drop all the annoying nil checks 2019-12-05 18:05:29 +01:00
Christian Muehlhaeuser 556c490ac4 Fix nil pointer access when style is unused 2019-12-05 17:52:22 +01:00
Christian Muehlhaeuser c4b02ad80d Cascade other style options to children when requested 2019-12-05 14:07:10 +01:00
Christian Muehlhaeuser 924d332de2 Support 24bit color space in terminals with support
Currently supported by xterm, Konsole, gnome Terminal, VTE, iTerm2.
2019-12-05 12:19:17 +01:00
Christian Muehlhaeuser cb80cfbb36 Use color helper to retrieve correct ANSI color index 2019-12-05 11:55:24 +01:00
Christian Muehlhaeuser 39a6da5fe7 Support hex color values in style config
While we don't support extended color ranges just yet, this approximates
the hex value to the closest color value in the ANSI 256-color chart.
2019-12-05 11:43:56 +01:00
Christian Muehlhaeuser 038f2dd684 Handle write buffers & cascading styles in BlockStack 2019-12-04 13:36:31 +01:00
Christian Muehlhaeuser 9134cddd48 Fix filename baseelement.go 2019-12-04 09:51:59 +01:00