1*32bb5217SDaniel Fojt /**************************************************************************** 2*32bb5217SDaniel Fojt * Copyright 2020 Thomas E. Dickey * 3*32bb5217SDaniel Fojt * Copyright 2016 Free Software Foundation, Inc. * 4*32bb5217SDaniel Fojt * * 5*32bb5217SDaniel Fojt * Permission is hereby granted, free of charge, to any person obtaining a * 6*32bb5217SDaniel Fojt * copy of this software and associated documentation files (the * 7*32bb5217SDaniel Fojt * "Software"), to deal in the Software without restriction, including * 8*32bb5217SDaniel Fojt * without limitation the rights to use, copy, modify, merge, publish, * 9*32bb5217SDaniel Fojt * distribute, distribute with modifications, sublicense, and/or sell * 10*32bb5217SDaniel Fojt * copies of the Software, and to permit persons to whom the Software is * 11*32bb5217SDaniel Fojt * furnished to do so, subject to the following conditions: * 12*32bb5217SDaniel Fojt * * 13*32bb5217SDaniel Fojt * The above copyright notice and this permission notice shall be included * 14*32bb5217SDaniel Fojt * in all copies or substantial portions of the Software. * 15*32bb5217SDaniel Fojt * * 16*32bb5217SDaniel Fojt * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS * 17*32bb5217SDaniel Fojt * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * 18*32bb5217SDaniel Fojt * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. * 19*32bb5217SDaniel Fojt * IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, * 20*32bb5217SDaniel Fojt * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * 21*32bb5217SDaniel Fojt * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * 22*32bb5217SDaniel Fojt * THE USE OR OTHER DEALINGS IN THE SOFTWARE. * 23*32bb5217SDaniel Fojt * * 24*32bb5217SDaniel Fojt * Except as contained in this notice, the name(s) of the above copyright * 25*32bb5217SDaniel Fojt * holders shall not be used in advertising or otherwise to promote the * 26*32bb5217SDaniel Fojt * sale, use or other dealings in this Software without prior written * 27*32bb5217SDaniel Fojt * authorization. * 28*32bb5217SDaniel Fojt ****************************************************************************/ 29*32bb5217SDaniel Fojt 30*32bb5217SDaniel Fojt /**************************************************************************** 31*32bb5217SDaniel Fojt * Author: Thomas E Dickey * 32*32bb5217SDaniel Fojt ****************************************************************************/ 33*32bb5217SDaniel Fojt 34*32bb5217SDaniel Fojt /* 35*32bb5217SDaniel Fojt * $Id: reset_cmd.h,v 1.8 2020/02/02 23:34:34 tom Exp $ 36*32bb5217SDaniel Fojt * 37*32bb5217SDaniel Fojt * Utility functions for resetting terminal. 38*32bb5217SDaniel Fojt */ 39*32bb5217SDaniel Fojt #ifndef RESET_CMD_H 40*32bb5217SDaniel Fojt #define RESET_CMD_H 1 41*32bb5217SDaniel Fojt /* *INDENT-OFF* */ 42*32bb5217SDaniel Fojt 43*32bb5217SDaniel Fojt #define USE_LIBTINFO 44*32bb5217SDaniel Fojt #define __INTERNAL_CAPS_VISIBLE /* we need to see has_hardware_tabs */ 45*32bb5217SDaniel Fojt #include <progs.priv.h> 46*32bb5217SDaniel Fojt 47*32bb5217SDaniel Fojt #undef CTRL 48*32bb5217SDaniel Fojt #define CTRL(x) ((x) & 0x1f) 49*32bb5217SDaniel Fojt 50*32bb5217SDaniel Fojt extern bool send_init_strings(int /* fd */, TTY * /* old_settings */); 51*32bb5217SDaniel Fojt extern void print_tty_chars(TTY * /* old_settings */, TTY * /* new_settings */); 52*32bb5217SDaniel Fojt extern void reset_flush(void); 53*32bb5217SDaniel Fojt extern void reset_start(FILE * /* fp */, bool /* is_reset */, bool /* is_init */ ); 54*32bb5217SDaniel Fojt extern void reset_tty_settings(int /* fd */, TTY * /* tty_settings */); 55*32bb5217SDaniel Fojt extern void set_control_chars(TTY * /* tty_settings */, int /* erase */, int /* intr */, int /* kill */); 56*32bb5217SDaniel Fojt extern void set_conversions(TTY * /* tty_settings */); 57*32bb5217SDaniel Fojt 58*32bb5217SDaniel Fojt #if HAVE_SIZECHANGE 59*32bb5217SDaniel Fojt extern void set_window_size(int /* fd */, short * /* high */, short * /* wide */); 60*32bb5217SDaniel Fojt #endif 61*32bb5217SDaniel Fojt 62*32bb5217SDaniel Fojt extern const char *_nc_progname; 63*32bb5217SDaniel Fojt 64*32bb5217SDaniel Fojt /* *INDENT-ON* */ 65*32bb5217SDaniel Fojt 66*32bb5217SDaniel Fojt #endif /* RESET_CMD_H */ 67