Better cursor-handling to save explicit moves on output

This commit is contained in:
Keith Winstein
2011-02-06 03:52:29 -05:00
parent 9ee3ef57bb
commit bab3f90e2b
2 changed files with 7 additions and 9 deletions
+2 -1
View File
@@ -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 );