console: add *_console_scroll_up()/_down() helpers
Xterm supports CSIs which simply move the visible buffer up/down so we need these helpers to perform such operations from the VTE layer. Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
This commit is contained in:
1 parent
51b70bef52
commit
b4bbc2b087
2 files changed
+18
No files matched your search
@@ -854,6 +854,22 @@ void kmscon_console_newline(struct kmscon_console *con)
|
||||
kmscon_console_move_line_home(con);
|
||||
}
|
||||
|
||||
void kmscon_console_scroll_up(struct kmscon_console *con, unsigned int num)
|
||||
{
|
||||
if (!con || !num)
|
||||
return;
|
||||
|
||||
console_scroll_up(con, num);
|
||||
}
|
||||
|
||||
void kmscon_console_scroll_down(struct kmscon_console *con, unsigned int num)
|
||||
{
|
||||
if (!con || !num)
|
||||
return;
|
||||
|
||||
console_scroll_down(con, num);
|
||||
}
|
||||
|
||||
void kmscon_console_move_to(struct kmscon_console *con, unsigned int x,
|
||||
unsigned int y)
|
||||
{
|
||||
|
||||
@@ -83,6 +83,8 @@ void kmscon_console_draw(struct kmscon_console *con, struct font_screen *fscr);
|
||||
void kmscon_console_write(struct kmscon_console *con, kmscon_symbol_t ch,
|
||||
const struct font_char_attr *attr);
|
||||
void kmscon_console_newline(struct kmscon_console *con);
|
||||
void kmscon_console_scroll_up(struct kmscon_console *con, unsigned int num);
|
||||
void kmscon_console_scroll_down(struct kmscon_console *con, unsigned int num);
|
||||
void kmscon_console_move_to(struct kmscon_console *con, unsigned int x,
|
||||
unsigned int y);
|
||||
void kmscon_console_move_up(struct kmscon_console *con, unsigned int num,
|
||||
|
||||
Reference in new issue
Block a user