Support reverse video.

This commit is contained in:
Keith Winstein
2011-02-04 02:04:09 -05:00
parent 9dc3c425ad
commit 63d2f5ce42
4 changed files with 11 additions and 2 deletions
+3 -1
View File
@@ -210,7 +210,7 @@ static bool *get_DEC_mode( int param, Framebuffer *fb ) {
switch ( param ) {
case 1: /* cursor key mode */
return &(fb->ds.application_mode_cursor_keys);
case 3: /* 80/132 */
case 3: /* 80/132. Ignore but clear screen. */
/* clear screen */
fb->ds.move_row( 0 );
fb->ds.move_col( 0 );
@@ -218,6 +218,8 @@ static bool *get_DEC_mode( int param, Framebuffer *fb ) {
clearline( fb, y, 0, fb->ds.get_width() - 1 );
}
return NULL;
case 5: /* reverse video */
return &(fb->ds.reverse_video);
case 6: /* origin */
fb->ds.move_row( 0 );
fb->ds.move_col( 0 );