KazDragon / terminalpp

A C++ library for interacting with ANSI terminal windows.
MIT License
75 stars 10 forks source link

Fold continuation functions into the constructor #288

Closed KazDragon closed 2 years ago

KazDragon commented 2 years ago

As groovy as they are, repeatedly adding lambdas to terminal.write(...) is not a great experience. These are always the same function, and it would be better to store in the constructor.

This would allow the syntax for writing to become terminal << move_cursor({3, 4}), for example.