2020-05-21 20:22:34 -03:00
|
|
|
/*
|
2021-04-28 17:46:44 -03:00
|
|
|
* Copyright (c) 2020, the SerenityOS developers.
|
2020-05-21 20:22:34 -03:00
|
|
|
*
|
2021-04-22 05:24:48 -03:00
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
2020-05-21 20:22:34 -03:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <AK/Types.h>
|
|
|
|
|
#include <LibLine/Style.h>
|
|
|
|
|
|
2023-07-11 14:49:08 -03:00
|
|
|
namespace Line::VT {
|
2020-05-21 20:22:34 -03:00
|
|
|
|
2023-02-09 21:00:18 -03:00
|
|
|
ErrorOr<void> save_cursor(Stream&);
|
|
|
|
|
ErrorOr<void> restore_cursor(Stream&);
|
|
|
|
|
ErrorOr<void> clear_to_end_of_line(Stream&);
|
|
|
|
|
ErrorOr<void> clear_lines(size_t count_above, size_t count_below, Stream&);
|
|
|
|
|
ErrorOr<void> move_relative(int x, int y, Stream&);
|
|
|
|
|
ErrorOr<void> move_absolute(u32 x, u32 y, Stream&);
|
|
|
|
|
ErrorOr<void> apply_style(Style const&, Stream&, bool is_starting = true);
|
2020-05-21 20:22:34 -03:00
|
|
|
|
|
|
|
|
}
|