tio/src/include/tio/tty.h
Martin Lund 72a287f189 Changed escape key from ^g to ^t
After renaming to "tio" it makes sense to change the escape key
accordingly. Hence, the new escape key is ^t.

Meaning, in session, its now ctrl-t + q to quit.
2016-05-07 14:31:24 +02:00

33 lines
1,016 B
C

/*
* tio - the simple TTY terminal I/O application
*
* Copyright (c) 2014-2016 Martin Lund
*
* 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 2
* 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, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301, USA.
*/
#ifndef TTY_H
#define TTY_H
#define KEY_CTRL_T 0x14
#define KEY_Q 0x71
void configure_stdout(void);
void restore_stdout(void);
int connect_tty(void);
void wait_for_tty_device(void);
#endif