dreais / SimpleGui

Library using ncurses to build fast and light GUI, in C.
http://rudreais.com
MIT License
2 stars 0 forks source link

[buffer-actions] rewriting everything from scratch is heavy #13

Open dreais opened 4 years ago

dreais commented 4 years ago

https://github.com/dreais/SimpleGui/blob/3bedf5ada880a33dc4f43d51f68b71989d28286e/Sources/Windows/Buffer/buffer_flush.c#L7

should have a "was_modified" parameter - if false, do NOT rewrite the entirety of the buffer. instead, only print the new elements.

that brings another question: void wb_write(instance *current, const char *str, int index); is fine but only appends. what if we need to WRITE instead?

dreais commented 4 years ago

see #15 commits - wb_write and wb_append

dreais commented 4 years ago

update: issue on hold until further notice