aaronjanse / 3mux

Terminal multiplexer inspired by i3
MIT License
1.82k stars 46 forks source link

Reduce large amount of unneeded writing to stdout #97

Closed aaronjanse closed 3 years ago

aaronjanse commented 3 years ago

ColorNone means that the default colors should be used, meaning Code is meaningless. Two ColorNones with different Codes are identical but previously were not treated as such, causing the renderer to very often (every 25 milliseconds) print reset color commands unnecessarily.

I bet this also means much less idle CPU usage, but I haven't tested this theory.

aaronjanse commented 3 years ago

Whoops, good catch! Those || true were from testing. Now removed :-)