buffybox/unl0kr/terminal.h

40 lines
1.3 KiB
C
Raw Normal View History

2022-01-27 20:03:10 +01:00
/**
* Copyright 2021 Johannes Marbach
*
2024-01-10 19:54:00 +01:00
* This file is part of buffybox, hereafter referred to as the program.
2022-01-27 20:03:10 +01:00
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef UL_TERMINAL_H
#define UL_TERMINAL_H
#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 ul_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 ul_terminal_reset_current_terminal(void);
#endif /* UL_TERMINAL_H */