preparation for insert and delete commands

pull/111/merge
Ondřej Hruška 7 years ago
parent ec1cebdd4c
commit 2cb8586c94
  1. 8
      user/ansi_parser_callbacks.c
  2. 28
      user/screen.c
  3. 6
      user/screen.h

@ -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;
} }
} }

@ -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
* *

@ -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 */

Loading…
Cancel
Save