Files
buffybox/terminal.h
2023-03-13 21:27:39 +01:00

40 lines
1.3 KiB
C

/**
* Copyright 2021 Johannes Marbach
*
* This file is part of unl0kr, hereafter referred to as the program.
*
* 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>
/**
* 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)
*/
void ul_terminal_prepare_current_terminal(bool enable_graphics_mode, bool disable_keyboard_input);
/**
* Reset the current TTY to text output.
*/
void ul_terminal_reset_current_terminal(void);
#endif /* UL_TERMINAL_H */