fork of PCE focusing on macplus, supporting DaynaPort SCSI network emulation
at master 52 lines 2.1 kB view raw
1/***************************************************************************** 2 * pce * 3 *****************************************************************************/ 4 5/***************************************************************************** 6 * File name: src/lib/console.h * 7 * Created: 2006-06-19 by Hampa Hug <hampa@hampa.ch> * 8 * Copyright: (C) 2006-2019 Hampa Hug <hampa@hampa.ch> * 9 *****************************************************************************/ 10 11/***************************************************************************** 12 * This program is free software. You can redistribute it and / or modify it * 13 * under the terms of the GNU General Public License version 2 as published * 14 * by the Free Software Foundation. * 15 * * 16 * This program is distributed in the hope that it will be useful, but * 17 * WITHOUT ANY WARRANTY, without even the implied warranty of * 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General * 19 * Public License for more details. * 20 *****************************************************************************/ 21 22 23#ifndef PCE_LIB_CONSOLE_H 24#define PCE_LIB_CONSOLE_H 1 25 26 27#include <stdio.h> 28#include <stdarg.h> 29 30 31FILE *pce_get_redir_inp (void); 32FILE *pce_get_redir_out (void); 33 34FILE *pce_get_fp_inp (void); 35FILE *pce_get_fp_out (void); 36 37int pce_set_redir_inp (const char *fname); 38int pce_set_redir_out (const char *fname, const char *mode); 39 40int pce_gets (const char *prompt, char *str, unsigned max); 41int pce_putc (int c); 42int pce_puts (const char *str); 43int pce_printf (const char *msg, ...); 44int pce_vprintf (const char *msg, va_list va); 45 46void pce_prt_sep (const char *str); 47 48void pce_console_init (FILE *inp, FILE *out); 49void pce_console_done (void); 50 51 52#endif