buffybox/shared/terminal.h

26 lines
638 B
C
Raw Permalink Normal View History

2022-01-27 20:03:10 +01:00
/**
* Copyright 2021 Johannes Marbach
* SPDX-License-Identifier: GPL-3.0-or-later
2022-01-27 20:03:10 +01:00
*/
2024-01-12 10:00:05 +01:00
#ifndef BBX_TERMINAL_H
#define BBX_TERMINAL_H
2022-01-27 20:03:10 +01:00
#include <stdbool.h>
2022-01-27 20:03:10 +01:00
/**
* Prepare the current TTY for graphics output.
*
* @param enable_graphics_mode if true, switch terminal into graphics mode (hides command prompt)
* @param disable_keyboard_input if true, disable terminal keyboard input (hides entered text)
2022-01-27 20:03:10 +01:00
*/
void bbx_terminal_prepare_current_terminal(bool enable_graphics_mode, bool disable_keyboard_input);
2022-01-27 20:03:10 +01:00
/**
* Reset the current TTY to text output.
*/
void bbx_terminal_reset_current_terminal(void);
2022-01-27 20:03:10 +01:00
#endif /* BBX_TERMINAL_H */