-
Notifications
You must be signed in to change notification settings - Fork 6
/
emu-con.h
36 lines (24 loc) · 816 Bytes
/
emu-con.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
//------------------------------------------------------------------------------
// EMU86 - Generic console
//------------------------------------------------------------------------------
#pragma once
#include "list.h"
#include "emu-types.h"
// Display emulation
int con_put_char (byte_t c, byte_t a);
int con_pos_set (byte_t row, byte_t col);
int con_pos_get (byte_t *row, byte_t *col);
int con_scroll (int dn, byte_t n, byte_t at, byte_t r, byte_t c, byte_t r2, byte_t c2);
// Keyboard emulation
void con_init_key ();
void con_put_key (word_t k);
int con_get_key (word_t * k);
int con_poll_key ();
// Console modes
void con_normal ();
void con_raw ();
// Console main
int con_proc ();
int con_init ();
void con_term ();
//------------------------------------------------------------------------------