2
* Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
4
* This file is part of GNUPG.
6
* GNUPG is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation; either version 2 of the License, or
9
* (at your option) any later version.
11
* GNUPG is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
16
* You should have received a copy of the GNU General Public License
17
* along with this program; if not, write to the Free Software
18
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
23
const char *tty_get_ttyname (void);
24
int tty_batchmode( int onoff );
25
#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 5 )
26
void tty_printf (const char *fmt, ... ) __attribute__ ((format (printf,1,2)));
28
void tty_printf (const char *fmt, ... );
30
void tty_print_string( byte *p, size_t n );
31
void tty_print_utf8_string( byte *p, size_t n );
32
void tty_print_utf8_string2( byte *p, size_t n, size_t max_n );
33
char *tty_get( const char *prompt );
34
char *tty_get_hidden( const char *prompt );
35
void tty_kill_prompt(void);
36
int tty_get_answer_is_yes( const char *prompt );
37
int tty_no_terminal(int onoff);
40
#endif /*G10_TTYIO_H*/