VT.h 463 B

123456789101112131415161718192021222324
  1. /*
  2. * Copyright (c) 2020, the SerenityOS developers.
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #pragma once
  7. #include <AK/Types.h>
  8. #include <LibLine/Style.h>
  9. namespace Line {
  10. namespace VT {
  11. void save_cursor();
  12. void restore_cursor();
  13. void clear_to_end_of_line();
  14. void clear_lines(size_t count_above, size_t count_below = 0);
  15. void move_relative(int x, int y);
  16. void move_absolute(u32 x, u32 y);
  17. void apply_style(const Style&, bool is_starting = true);
  18. }
  19. }