Better cursor-handling to save explicit moves on output
This commit is contained in:
+2
-1
@@ -17,11 +17,12 @@ namespace Terminal {
|
||||
bool initialized;
|
||||
Framebuffer last_frame;
|
||||
std::string current_rendition_string;
|
||||
int cursor_x, cursor_y;
|
||||
|
||||
public:
|
||||
Display( int width, int height )
|
||||
: initialized( false ), last_frame( width, height ),
|
||||
current_rendition_string()
|
||||
current_rendition_string(), cursor_x( -1 ), cursor_y( -1 )
|
||||
{}
|
||||
|
||||
std::string new_frame( Framebuffer &f );
|
||||
|
||||
Reference in New Issue
Block a user