preparation for insert and delete commands

This commit is contained in:
2017-08-10 01:58:10 +02:00
parent ec1cebdd4c
commit 2cb8586c94
3 changed files with 38 additions and 4 deletions
+4 -4
View File
@@ -267,19 +267,19 @@ apars_handle_CSI(char leadchar, int *params, char keychar)
break; break;
case 'L': case 'L':
// TODO insert line screen_insert_lines(n1);
break; break;
case 'M': case 'M':
// TODO delete line screen_delete_lines(n1);
break; break;
case '@': case '@':
// TODO insert character (in line) screen_insert_characters(n1);
break; break;
case 'P': case 'P':
// TODO delete character (in line) screen_delete_characters(n1);
break; break;
} }
} }
+28
View File
@@ -276,6 +276,34 @@ screen_fill_with_E(void)
//region Screen manipulation //region Screen manipulation
void screen_insert_lines(unsigned int lines)
{
NOTIFY_LOCK();
// TODO
NOTIFY_DONE();
}
void screen_delete_lines(unsigned int lines)
{
NOTIFY_LOCK();
// TODO
NOTIFY_DONE();
}
void screen_insert_characters(unsigned int count)
{
NOTIFY_LOCK();
// TODO
NOTIFY_DONE();
}
void screen_delete_characters(unsigned int count)
{
NOTIFY_LOCK();
// TODO
NOTIFY_DONE();
}
/** /**
* Change the screen size * Change the screen size
* *
+6
View File
@@ -122,6 +122,12 @@ void screen_scroll_down(unsigned int lines);
/** esc # 8 - fill entire screen with E of default colors */ /** esc # 8 - fill entire screen with E of default colors */
void screen_fill_with_E(void); void screen_fill_with_E(void);
// --- insert / delete ---
void screen_insert_lines(unsigned int lines);
void screen_delete_lines(unsigned int lines);
void screen_insert_characters(unsigned int count);
void screen_delete_characters(unsigned int count);
// --- Cursor control --- // --- Cursor control ---
/** Set cursor position */ /** Set cursor position */