2020-05-22 03:52:34 +04:30
|
|
|
/*
|
2021-04-28 22:46:44 +02:00
|
|
|
* Copyright (c) 2020, the SerenityOS developers.
|
2020-05-22 03:52:34 +04:30
|
|
|
*
|
2021-04-22 01:24:48 -07:00
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
2020-05-22 03:52:34 +04:30
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <AK/Types.h>
|
|
|
|
|
#include <LibLine/Style.h>
|
|
|
|
|
|
|
|
|
|
namespace Line {
|
|
|
|
|
namespace VT {
|
|
|
|
|
|
2021-07-19 23:12:28 +04:30
|
|
|
void save_cursor(OutputStream&);
|
|
|
|
|
void restore_cursor(OutputStream&);
|
|
|
|
|
void clear_to_end_of_line(OutputStream&);
|
|
|
|
|
void clear_lines(size_t count_above, size_t count_below, OutputStream&);
|
|
|
|
|
void move_relative(int x, int y, OutputStream&);
|
|
|
|
|
void move_absolute(u32 x, u32 y, OutputStream&);
|
|
|
|
|
void apply_style(const Style&, OutputStream&, bool is_starting = true);
|
2020-05-22 03:52:34 +04:30
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|