* configure (config.h): SUPPORT_WIN9X_CONSOLE_MBCS * linein.c (inputLineHistSearch): enable_win9x_console_input() disable_win9x_console_input() * main.c (mouse): cygin_mouse_btn_swapped * terms.c (is_xterm): static (isLocalConsole): added (cygwin_mouse_btn_swapped): added (check_win32_console): deleted (check_win9x): added (init_win32_console_handle): check ttyslot() (enable_win9x_console_input): added (disable_win9x_console_input): added (read_win32_console_input): delete ifdef MOUSE (cmp_tv): deleted (subtract_tv): deleted (GetConsoleHwnd): added (cygwin_version): added (select_or_poll_win32_console): deleted (check_cygwin_console): added (select_win32_console): deleted (set_tty): check_cygin_console() (term_title): SetConsoleTitle() (CYGWIN_ON): added (CYGIN_OFF): added (mouse_init): NEED_CYGWIN_ON (mouse_end): NEED_CYGWIN_OFF * terms.h (cygwin_mouse_btn_swapped): added (enable_win9x_console_input): added (disable_win9x_console_input): added (NEED_CYGWIN_ON): added (NEED_CYGWIN_OFF): added From: WATANABE Katsuyuki <katsuyuki_1.watanabe@toppan.co.jp>
56 lines
1.5 KiB
C
56 lines
1.5 KiB
C
/* $Id: terms.h,v 1.7 2002/11/15 15:36:48 ukai Exp $ */
|
|
#ifndef TERMS_H
|
|
#define TERMS_H
|
|
|
|
extern int LINES, COLS;
|
|
|
|
#define CODE_ASCII '\0'
|
|
#define CODE_EUC 'E'
|
|
#define CODE_SJIS 'S'
|
|
#define CODE_JIS_n 'n'
|
|
#define CODE_JIS_m 'm'
|
|
#define CODE_JIS_N 'N'
|
|
#define CODE_JIS_j 'j'
|
|
#define CODE_JIS_J 'J'
|
|
#define CODE_INNER_EUC 'I'
|
|
|
|
#define STR_ASCII "US_ASCII"
|
|
#define STR_EUC "EUC-JP"
|
|
#define STR_SJIS "Shift_JIS"
|
|
#define STR_JIS_n "ISO-2022-JP (JIS X 0208 + US_ASCII)"
|
|
#define STR_JIS_m "ISO-2022-JP (JIS C 6226 + US_ASCII)"
|
|
#define STR_JIS_N "ISO-2022-JP (JIS X 0208 + JIS X 0201)"
|
|
#define STR_JIS_j "ISO-2022-JP (JIS C 6226 + JIS X 0201)"
|
|
#define STR_JIS_J "ISO-2022-JP (JIS C 6226 + '\033(H')"
|
|
#define STR_INNER_EUC "EUC-JP (internal)"
|
|
|
|
#define CODE_JIS(x) ((x)==CODE_JIS_n||(x)==CODE_JIS_m||(x)==CODE_JIS_N||(x)==CODE_JIS_j||(x)==CODE_JIS_J)
|
|
|
|
#ifdef USE_MOUSE
|
|
/* Addition:mouse event */
|
|
#define MOUSE_BTN1_DOWN 0
|
|
#define MOUSE_BTN2_DOWN 1
|
|
#define MOUSE_BTN3_DOWN 2
|
|
#define MOUSE_BTN4_DOWN_RXVT 3
|
|
#define MOUSE_BTN5_DOWN_RXVT 4
|
|
#define MOUSE_BTN4_DOWN_XTERM 64
|
|
#define MOUSE_BTN5_DOWN_XTERM 65
|
|
#define MOUSE_BTN_UP 3
|
|
#define MOUSE_BTN_RESET -1
|
|
|
|
#ifdef __CYGWIN__
|
|
extern int is_xterm;
|
|
extern int cygwin_mouse_btn_swapped;
|
|
#ifdef SUPPORT_WIN9X_CONSOLE_MBCS
|
|
void enable_win9x_console_input(void);
|
|
void disable_win9x_console_input(void);
|
|
#endif
|
|
#define NEED_CYGWIN_ON (1<<2)
|
|
#define NEED_CYGWIN_OFF (1<<3)
|
|
#endif
|
|
#define NEED_XTERM_ON (1)
|
|
#define NEED_XTERM_OFF (1<<1)
|
|
#endif
|
|
|
|
#endif /* not TERMS_H */
|