📄 scrio.h
字号:
#ifndef __ScrIOH__ // Schutz gegen mehrfaches #include
#define __ScrIOH__
/***********************************************************************
ScrIO.h
Projekt :
Funktion: Headerdatei f乺 das Softwaremodul "ScrIO.c".
siehe ScrIO.c
Autor : Hardi Stengelin Tel.: 06142/7-75757
Sprache : Keil-C166
----------------------------------------------------------------
*/
// *** Konstantendefinitionen ***
#define ESC 27
#define ENTER 13
#define UP 321
#define DOWN 322
#define RIGHT 323
#define LEFT 324
#define HOME 328
#define ENDE 331
#define CLR 0x7F
#define DEL 8
#define TAB 9
#define SHTAB 3
#define TABKEY "\11"
#define SHTABKEY "\03"
// The ANSI emulation has to be enabled to use coulored display (Term90: Einstellungen/Terminal/Ansi)
#define ANSI
#ifdef ANSI
#define ANSI_NORMAL "\33[0m"
#define ANSI_HIGH_INT "\33[1m"
#define ANSI_RED "\33[1;31m"
#define ANSI_GREEN "\33[1;32m"
#define ANSI_YELLOW "\33[1;33m"
#else
#define ANSI_NORMAL ""
#define ANSI_HIGH_INT ""
#define ANSI_RED ""
#define ANSI_GREEN ""
#define ANSI_YELLOW ""
#endif
#define GotoXY(x, y) printf("\33[%i;%iH",(int)(y), (int)(x))
#define ClrScr() printf("\33[2J")
// *** Typendefinitionen ***
// *** Deklaration von Objekten f乺 andere Module ***
#ifndef __ScrIOC__
#endif // __ScrIOC__
// *** Prototypes for methods ***
int GetKey(void);
// modes
#define LEADING0 1
#define LEFTSPACE 2
void Edit_Str(byte x, byte y, char *s, int size_s, byte startpos, char *TabKeys, char *ShTabKeys);
int Edit_word(byte x, byte y, word *w);
int Edit_num(byte x, byte y, long *l, byte len, byte mode, char *TabKeys, char *ShTabKeys);
int Edit_byte(byte x, byte y, byte *b);
int Edit_Ver(byte x, byte y, byte *b);
int Edit_Date(byte x, byte y, word *Date);
int Edit_Time(byte x, byte y, ulong *Time);
#endif // __ScrIOH__
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -