sc_machdep.h revision 48187
1/*- 2 * $Id: $ 3 */ 4 5#ifndef _PC98_PC98_SC_MACHDEP_H_ 6#define _PC98_PC98_SC_MACHDEP_H_ 7 8#undef SC_ALT_MOUSE_IMAGE 9#undef SC_DFLT_FONT 10#undef SC_MOUSE_CHAR 11#undef SC_PIXEL_MODE 12#undef SC_NO_FONT_LOADING 13#define SC_NO_FONT_LOADING 1 14#undef SC_NO_PALETTE_LOADING 15#define SC_NO_PALETTE_LOADING 1 16 17#ifndef SC_KERNEL_CONS_ATTR 18#define SC_KERNEL_CONS_ATTR (FG_LIGHTGREY | BG_BLACK) 19#endif 20 21#define KANJI 1 22 23#define BELL_DURATION 5 24#define BELL_PITCH_8M 1339 25#define BELL_PITCH_5M 1678 26 27#define UJIS 0 28#define SJIS 1 29 30#define PRINTABLE(c) ((c) > 0x1b || ((c) > 0x0f && (c) < 0x1b) \ 31 || (c) < 0x07) 32 33#define ISMOUSEAVAIL(af) (1) 34#define ISFONTAVAIL(af) ((af) & V_ADP_FONT) 35#define ISPALAVAIL(af) ((af) & V_ADP_PALETTE) 36 37#ifdef KANJI 38 39#define IS_KTYPE_ASCII_or_HANKAKU(A) (!((A) & 0xee)) 40#define IS_KTYPE_KANA(A) ((A) & 0x11) 41#define KTYPE_MASK_CTRL(A) ((A) &= 0xF0) 42 43#define _SCR_MD_STAT_DECLARED_ 44typedef struct { 45 u_char kanji_1st_char; 46 u_char kanji_type; 47#define KTYPE_ASCII 0 /* ASCII */ 48#define KTYPE_KANA 1 /* HANKAKU */ 49#define KTYPE_JKANA 0x10 /* JIS HANKAKU */ 50#define KTYPE_7JIS 0x20 /* JIS */ 51#define KTYPE_SJIS 2 /* Shift JIS */ 52#define KTYPE_UJIS 4 /* UJIS */ 53#define KTYPE_SUKANA 3 /* Shift JIS or UJIS HANKAKU */ 54#define KTYPE_SUJIS 6 /* SHift JIS or UJIS */ 55#define KTYPE_KANIN 0x80 /* Kanji Invoke sequence */ 56#define KTYPE_ASCIN 0x40 /* ASCII Invoke sequence */ 57} scr_md_stat_t; 58 59#endif /* KANJI */ 60 61#endif /* !_PC98_PC98_SC_MACHDEP_H_ */ 62