libfusefdc: better TR-DOS boot setting
[zymosis.git] / src / ZXEmuT / console.h
blobd81fbe518a7a319f8310201d9f7a675c68c56259
1 /***************************************************************************
3 * ZXEmuT -- ZX Spectrum Emulator with Tcl scripting
5 * Copyright (C) 2012-2020 Ketmar Dark <ketmar@ketmar.no-ip.org>
7 * This program is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation, version 3 of the License ONLY.
11 * This program 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, see <http://www.gnu.org/licenses/>.
19 **************************************************************************/
20 #ifndef ZXEMUT_CONSOLE_H
21 #define ZXEMUT_CONSOLE_H
23 #include <stdlib.h>
24 #include <stdio.h>
25 #include <SDL.h>
27 #include "emucommon.h"
28 #include "emuvars.h"
29 #include "libvideo/video.h"
32 ////////////////////////////////////////////////////////////////////////////////
33 #define MAX_CON_LINES (512)
34 #define MAX_CON_HISTORY (512)
36 #define CON_WIDTH (VID_TEXT_WIDTH)
37 #define CON_HEIGHT (VID_TEXT_HEIGHT-6)
38 #define CON_TAB_SIZE (5)
40 #define CON_FG_COLOR (12)
41 #define CON_BG_COLOR (0)
44 ////////////////////////////////////////////////////////////////////////////////
45 extern int conpos;
46 extern FILE *condumpfl;
49 ////////////////////////////////////////////////////////////////////////////////
50 extern void conInit (void);
51 extern int conKeyEvent (SDL_KeyboardEvent *key);
52 extern void conDraw (void);
54 ////////////////////////////////////////////////////////////////////////////////
55 extern char *strprintfVA (const char *fmt, va_list vaorig);
56 extern char *strprintf (const char *fmt, ...) __attribute__((format(printf,1,2)));
58 extern void conPutChar (char ch);
59 extern void cprintfVA (const char *fmt, va_list va);
60 extern void cprintf (const char *fmt, ...) __attribute__((format(printf,1,2)));
62 ////////////////////////////////////////////////////////////////////////////////
63 extern void conExecute (const char *str, int astcl);
65 extern void conSetInputString (const char *str);
67 extern void conMessage (const char *fmt, ...) __attribute__((format(printf,1,2)));
68 extern void conDrawMessage (void);
71 #endif