VT.h 558 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(OutputStream&);
  12. void restore_cursor(OutputStream&);
  13. void clear_to_end_of_line(OutputStream&);
  14. void clear_lines(size_t count_above, size_t count_below, OutputStream&);
  15. void move_relative(int x, int y, OutputStream&);
  16. void move_absolute(u32 x, u32 y, OutputStream&);
  17. void apply_style(Style const&, OutputStream&, bool is_starting = true);
  18. }
  19. }