-
Notifications
You must be signed in to change notification settings - Fork 0
/
mmm_os2.h
74 lines (65 loc) · 1.44 KB
/
mmm_os2.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
/**********************************************
* OS/2 include file for MMMX Editor *
* Contains OS/2 WARP specific functions *
***********************************************/
#ifndef __INCLUDED_MMM_OS2__
#define __INCLUDED_MMM_OS2__
#define EXECUTER_FILENAME "__mmm__.cmd"
//&<<&#include
#define INCL_DOSQUEUES
#define INCL_DOS
#define INCL_SUB
#include <os2.h>
#include <conio.h>
#include <process.h>
#include <direct.h>
#include <dos.h>
#include "mmmx.h"
#include "mmmgrep.h"
//&>>&B 0 B 11
//&<<&class mmm_Screen;
class mmm_Screen{
int need;
int WIDTH,HEIGHT;
//////////////// int OldScr,OldCl;
//////////////// char far *OldCurs,OldAttr;
/// void Clear();
VIOMODEINFO saveVideoConfig;
public:
mmm_Screen();
~mmm_Screen();
int GetH(){ return HEIGHT; }
int GetW(){ return WIDTH; }
void View();
int &Need(){ return need; }
void SetCursor(int x,int y,int attr);
void ClrCursor();
};
//&>>&9 0 9 D
//&<<&class mmm_KeyBoard;
#ifdef __TURBOC__
# define IntArg ...
#else
# define IntArg
#endif
class mmm_KeyBoard{
APIRET retcode;
KBDKEYINFO keydata;
KBDINFO SaveKBD;
void InitKeyboardLayout();
char *InitDefaultAltCase();
public:
char *AltCase;
char keys[4][108];
int LastScanCode;
void SetACode(int n);
mmm_KeyBoard();
~mmm_KeyBoard();
int GetScan();
};
void ProcessShiftsStatus(USHORT stat);
/////// mmmx.err
//&>>&9 0 9 10
void MkScan(int scancode);
#endif
//&>>&D 0 D 12