SuperTux / supertux

SuperTux source code
https://supertux.org
GNU General Public License v3.0
2.49k stars 470 forks source link

Separate `StreamLineBuffer` from `ConsoleBuffer` #3016

Open Vankata453 opened 1 month ago

Vankata453 commented 1 month ago

Moves the line buffering functionality of ConsoleBuffer to a base class.

This simplifies the code a little bit, as well as allows using the line buffering functionality of ConsoleBuffer separately, if needed.

(I thought I'd need this to implement a feature, however, turns out I don't. It could still be implemented as a code improvement, though.)