Closed SeerLite closed 3 years ago
I updated the README and also added ansi-disable
.
@eraserhd What do you think about replacing render/clear commands with enable/disable commands? I can't see many uses for only render/clear but maybe I'm missing something
Regarding replacing render/clear with enable/disable... I'm not really sure.
I'm all for a simpler interface. Assuming ansi-enable renders the buffer and ansi-disable clears the highlighting for the buffer, here are a few thoughts:
Ok, so I think I'd propose:
ansi-enable
calls ansi-render
and adds hooks, so it works on static buffers too.ansi-disable
removes hooks, does not clear colors.ansi-clear
clears colors.ansi-enable
.
To be used in custom hooks in user configuration: