home *** CD-ROM | disk | FTP | other *** search
- /*
- * default.h: default parameters
- *
- * Author: HIRANO Satoshi
- * (C) 1989 Halca Computer Science Laboratory TM
- * University of Tokyo
- *
- * Edition history:
- * 1.1 90/02/03 Halca.Hirano separate from config.h
- *
- * $Header: default.hv 1.3 90/06/30 06:01:42 hirano Exp $
- */
-
-
- /*
- * default parameters
- *
- * But don't worry, following parameters can be changed in Set-Up.
- */
-
- /*
- * If PC9801, your machine has real back quote or not.
- *
- * CAUTION: I recommend to set NO. When you have newer machines, set YES in
- * set-up and save it.
- */
- #define HAVE_REAL_BACK_QUOTE NO /* emulate backquote/backslash */
-
- /*
- * KANJI code
- */
- #define SJIS 0 /* shift JIS code */
- #define OJIS 1 /* old JIS code */
- #define NJIS 2 /* new JIS code */
- #define EUC 3 /* EUC code */
- #ifndef NEC_KANJI
- # define KMAX 3 /* max kanji code */
- #else /* NEC_KANJI */
- # define NECKANJI 4 /* NEC KANJI code */
- # define KMAX 4 /* max kanji code */
- #endif /* NEC_KANJI */
- #define DEFAULT_KANJI_CODE NJIS /* default kanji code */
-
- /*
- * FEP invocation key
- */
- #ifdef PC98
- #define FEP_CTRLXFER 1 /* fep becomes active by CTRL-XFER */
- #define FEP_SHIFTXFER 2
- #define FEP_BOTHXFER 3
- #define FEP_NOXFER 0 /* don't use FEP */
- #define MAX_FEP_XFER 3
- #define DEFAULT_FEP_INVOKE FEP_CTRLXFER
- #else /* !PC98 */
- #define FEP_KANJIKEY 0 /* fep becomes active by `Kanji' key */
- #define MAX_FEP_XFER 0
- #define DEFAULT_FEP_INVOKE FEP_KANJIKEY
- #endif /* PC98 */
-
- /*
- * console line mode
- */
- #define LINE_MODE_24 0
- #define LINE_MODE_25 1
- #define LINE_MODE_19 2
- #define LINE_MODE_20 3
- #ifdef PC98
- #ifdef PC98XA
- #define MAX_LINE_MODE 1
- #else
- #define MAX_LINE_MODE 3
- #endif /* PC98XA */
- #endif /* PC98 */
- #ifdef IBMPC
- #define MAX_LINE_MODE 1
- #endif /* IBMPC */
- #ifdef J3100
- #define MAX_LINE_MODE 1
- #endif /* J3100 */
- #define DEFAULT_LINE_MODE LINE_MODE_24
-
- /*
- * default hterm help database file 'hterm.db'
- * This file is searched on
- * 1) current directory
- * 2) on HOME directory
- * 3) on PATH directories
- */
- #define HELP_FILE "hterm.db"
-
- /*
- * default hterm set-up file name
- */
- #define SETUP_FILE "hterm.set"
-
- #define DIAL_PAUSE_CHAR CTRL('P') /* pause char */
- #define DIAL_BEGIN_WAIT_CHAR CTRL('W') /* begin wait char */
- #define DIAL_END_WAIT_CHAR CTRL('W') /* end wait char */
- #ifdef PC98
- #define DIAL_DELAY 2 /* put chars slowly (2 ticks delay) */
- #else
- #define DIAL_DELAY 3 /* put chars slowly (3 ticks delay) */
- #endif
- #define DEFAULT_DIAL_PAUSE 3 /* default dialing pause in second */
-
- /*
- * CRT saver
- */
- #define CRT_SAVER_OFF 0 /* no saver */
- #define CRT_SAVER_3 1 /* 3 minutes for nurvous person */
- #define CRT_SAVER_10 2 /* 10 minuts */
- #define MAX_CRT_SAVER 2
- #define DEFAULT_CRT_SAVER CRT_SAVER_3
-
-
- /*
- * CRT saver type
- */
- #define DEFAULT_SAVER_TYPE 1 /* ICO saver */
- #define MAX_SAVER_TYPE 5
-
- /*
- * BS key watcher
- *
- * message will appear if
- * 1) bsKeyRatio is not zero, and
- * 2) SAMPLING_TIME is over, and
- * 3) not reached SAMPLING_TIME+60 sec, and
- * 4) at least INTERVAL_TIME sec is over from last message, and
- * 5) total key count is over THRESH_KEY, and
- * 6) BS/total ratio is over bsKeyRatio
- */
- #define BS_WATCHER_SAMPLING_TIME (3*60) /* sample in 3 minutes */
- #define BS_WATCHER_INTERVAL_TIME (10*60)/* make interval 10 minutes */
- #define BS_WATCHER_MESSAGE_TIME (15) /* show msg for 15 second */
- #define BS_WATCHER_THRESH_KEY 120 /* total 120 hitting required */
- #ifdef BS_WATCHER
- #define DEFAULT_BS_KEY_RATIO 0 /* default 0% (off) */
- #else
- #define DEFAULT_BS_KEY_RATIO 0 /* 0% (off) */
- #endif /* BS_WATCHER */
-
- /*
- * default font file name
- */
- #define DEFAULT_FONT_NAME "a14k14.hft"
-
- /*
- * default font cache size
- */
- #define DEFAULT_FONT_CACHE_SIZE 500 /* 500 fonts */
-
-
- /*
- * default formfeed action
- * YES: formfeed is clear screen and home cursor
- * NO: formfeed is line feed.
- */
- #define DEFAULT_FORMFEED NO /* formfeed is LF */
-
- /*
- * default cursor
- */
- #define DEFAULT_CURSOR YES /* visible cursor */
- #define DEFAULT_BLINK_CURSOR YES /* blink cursor */
- #define DEFAULT_BLOCK_CURSOR YES /* block cursor, not underline */
-
- /*
- * default auto wrap mode
- */
- #define DEFAULT_AUTO_WRAP YES /* auto wrap mode */
-
- /*
- * default interpret control sequence
- */
- #define DEFAULT_INTCONTROL YES /* interpret control */
-
- /*
- * default echo mode
- */
- #define DEFAULT_ECHO_MODE NO /* no local echo back */
-
- /*
- * default smooth scroll mode (PC98 only)
- */
- #define DEFAULT_SMOOTH NO /* jump scroll */
- #define DEFAULT_SMOOTH_SCANLINE 1 /* scroll scan line is 1 */
- #define DEFAULT_SMOOTH_SCROLLRATE 1 /* scroll rate is 1 */
-
- /*
- * default visible bell
- */
- #define AUDIBLE_BELL 0
- #define VISIBLE_BELL 1
- #define BOTH_AV_BELL 2
- #define MAX_BELL_MODE 2
- #define DEFAULT_VISIBLE_BELL AUDIBLE_BELL /* audible bell */
-
- /*
- * direct VRAM access or through BIOS (IBM-PC or AX only)
- * CAUTION: BIOS access is not supported now!
- * If you need BIOS access, check ibmpc.c
- */
- #define VRAM_DIRECT_ACCESS /* direct VRAM access */
- /* #undef VRAM_DIRECT_ACCESS */ /* through BIOS (very slow) */
-
- /*
- * page save feature for IBM-PC or AX (always ON on PC9801)
- * You can choose to define SAVE_PAGE either VRAM_DIRECT or not
- * BUT access through BIOS is VERY SLOW.
- */
- #define SAVE_PAGE /* page save feature on */
- /* undef SAVE_PAGE */ /* page save feature off */
-
- /*
- * default print mode
- */
- #define DEFAULT_PRINT_MODE NO /* auto print mode off */
- #define DEFAULT_PRINTER_DEVICE "prn" /* printer device name */
- #define DEFAULT_PRINTER_SPACING 8 /* spacing is 8 */
-
- /*
- * serial port
- */
- /*
- * serial port number
- *
- * If you change MAX_PORT, please add port address, vector and interrupt mask
- * below machine dependent part.
- * If on PC9801, change program initPortDevice() in port.c.
- * I prepared baud rate counter and interrupt enable bit on parallel port C
- * only for serial port 1.
- */
- #define PORT_COM1 0
- #define PORT_COM2 1
- #define PORT_COM3 2
- #define PORT_COM4 3
- #ifdef PC98 /* we can use com2:, but I don't know its address */
- #define MAX_PORT PORT_COM1
- #endif /* PC98 */
- #ifdef IBMPC
- #define MAX_PORT PORT_COM2
- #endif /* IBMPC */
- #ifdef J3100
- #define MAX_PORT PORT_COM2
- #endif /* J3100 */
- #define DEFAULT_PORT_NO PORT_COM1
-
- /*
- * priority of serial-receive polling against keyin polling
- */
- #define SERIAL_PRIORITY 10
-
- /*
- * default XON/XOFF mode
- */
- #define FLOWCTRL_NONE 0
- #define FLOWCTRL_XONXOFF 1
- #define FLOWCTRL_RTSCTS 2
- #define FLOWCTRL_MAX 2
- #define DEFAULT_FLOWCTRL FLOWCTRL_XONXOFF /* with xon/xoff */
-
- /*
- * default baud rate
- */
- #define DEFAULT_BAUDRATE 9600
-
- /*
- * default parity, char lenght
- */
- #define NO_PAR_8 0 /* no parity 8 bit */
- #define EV_PAR_8 1 /* even parity 8 bit */
- #define NO_PAR_7 2 /* no parity 7 bit */
- #define EV_PAR_7 3 /* even parity 7 bit */
- #define SP_PAR_7 4 /* space (0) parity 7 bit */
- #define MAX_PARITY 4
- #define DEFAULT_PARITY NO_PAR_8 /* non parity, 8 bit */
-
- /*
- * default stop bit
- */
- #define STOP_BIT_1 0 /* 1 stop bit */
- #define STOP_BIT_2 1 /* 2 stop bit */
- #define DEFAULT_STOP_BIT STOP_BIT_1 /* 1 stop bit */
-
- /*
- * drop or keep phone line at exit
- *
- */
- #define KEEP_LINE 0 /* negate ER/RTS at exit */
- #define DROP_LINE 1 /* keep high ER/RTS at exit */
- #define DEFAULT_KEEP_DROP_LINE KEEP_LINE
-
- /*
- * default key click
- */
- #define DEFAULT_KEY_CLICK NO /* no key click */
-
- /*
- * default newline mode
- * YES: CR is CR LF for sending.
- * YES: CR is CR for sending.
- */
- #define DEFAULT_NEWLINE_MODE NO
-
- /*
- * default key board (PC98 only)
- */
- #define ASCII_KEYBOARD 1 /* ASCII style keyboard */
- #define PC98_KEYBOARD 0 /* JIS style keyboard */
- #define DEFAULT_KEYBOARD PC98_KEYBOARD /* JIS style keyboard */
-
- /*
- * DEL code generation by BS key
- */
- #define BS_BS 0 /* BS key generates BS code */
- #define BS_DEL 1 /* BS key generates DEL code */
- #define DEFAULT_BS_KEY BS_BS
-
- /*
- * default application keypad mode
- * YES: ten key is application keyboard mode
- * NO: ten key is ten key
- */
- #define DEFAULT_APP_KEYBOARD NO
-
- /*
- * default cursor key mode (output code)
- */
- #define NORMAL_CURSOR 0
- #define APPLICATION_CURSOR 1
- #define DEFAULT_CURSOR_KEY_MODE NORMAL_CURSOR
-
- /*
- * shift/ctrl lock feature for one finger operation
- */
- #define DEFAULT_SHIFT_LOCK NO
-
- /*
- * default command line
- */
- #define DEFAULT_COMMAND_LINE "swap -F command.com"
- /*
- * mouse speed
- */
- #define MOUSE_FAST 0
- #define MOUSE_MIDDLE 1
- #define MOUSE_SLOW 2
- #define MOUSE_SPEED_MAX MOUSE_SLOW
- #define DEFAULT_MOUSE_SPEED MOUSE_MIDDLE
- #define MOUSE_SPEED_BASE 8 /* this * MOUSE_SPEED is threshhold */
-
- /*
- * file logging
- */
- #define NO_LOGGING 0
- #define LOG_CONVERT 1 /* XJIS/EUC -> SJIS convert */
- #define LOG_NO_CONVERT 2 /* no convert, binary */
- #define DEFAULT_LOG_FILE "session.log" /* default logging file name */
- #ifdef MSDOS
- #define DEFAULT_LOG_OPEN_MODE "ab" /* append, binary (even if text)*/
- #endif /* MSDOS */
- #ifdef OSK
- #define DEFAULT_LOG_OPEN_MODE "a" /* append */
- #endif /* OSK */
-
- /*
- * file up loading
- */
- #define NO_UPLOAD 0
- #define UP_CONVERT 1 /* SJIS->XJIS/EUC convert */
- #define UP_NO_CONVERT 2 /* no convert, binary */
- #define DEFAULT_UP_FILE "green or ruin" /* default up file name */
- #define UP_LOAD_TIMER 20 /* wait timer for sending (not sec)*/
- #ifdef MSDOS
- #define DEFAULT_UP_OPEN_MODE "rb" /* read, binary (even if text)*/
- #endif /* MSDOS */
- #ifdef OSK
- #define DEFAULT_UP_OPEN_MODE "r" /* read */
- #endif /* OSK */
-
- /*
- * x/y modem protocol
- */
- #define XY_XMODEM 0 /* xmodem, no batch */
- #define XY_YMODEM 1 /* ymodem, batch */
- #define XY_ZMODEM 2 /* zmodem with compression */
- #define DEFAULT_XMODEM_MODE XY_YMODEM /* use ymodem as default */
-
- /*
- * x/y modem text or binary
- * This is used on receiveing.
- */
- #define XMODEM_BINARY 0 /* binary mode */
- #define XMODEM_TEXT 1 /* text mode */
- #define DEFAULT_XMODEM_TYPE XMODEM_BINARY /* use binary as default */
-
- /*
- * x/y modem packet length
- */
- #define XMODEM_128 0 /* 128 byte packet */
- #define XMODEM_1024 1 /* 1024 byte packet */
- #define DEFAULT_XMODEM_LENGTH XMODEM_1024
-
- /*
- * default X/YMODEM file name
- */
- #define DEFAULT_XMODEM_FILENAME "Save air conditioners ^U"
-
- /*
- * default KERMIT file name
- */
- #define DEFAULT_KERMIT_FILENAME "Off lights! ^U"
-
- /*
- * history editor
- */
- #define PASTE_TIMER 20 /* wait timer for sending (not sec)*/
- #define COPY_BUF_FILE "/clipbd" /* copy buffer save file */
- #define COPY_FILE_ATTR "a" /* append text */
- #define MAX_HIST_LINES 800 /* HIST_LINES*MAX_COLUMN < 64K */
- #define MAX_COPY_BUF_SIZE (0xff00) /* max copy buffer size < 64K */
- #define DEFAULT_HIST_LINES 300 /* HIST_LINES*MAX_COLUMN < 64K */
- #define DEFAULT_COPY_BUF_SIZE (5000) /* default copy buffer size 5 Kb */
- #define SOFT_FONT_EBOX 0x80 /* soft font empty box char */
- #define SOFT_FONT_FBOX 0x7f /* soft font empty box char */
-
- /*
- * internal key code
- */
- #define CTRL_PF1 0x8100
- #define CTRL_PF2 0x8200
- #define CTRL_PF3 0xf000 /* don't use 0x0300 (CTRL-C) */
- #define CTRL_PF4 0x8400
- #define CTRL_PF5 0x8500
- #define CTRL_PF6 0xf100 /* don't use 0x0600 (CTRL-F) */
- #define CTRL_PF7 0x8700
- #define CTRL_PF8 0x8800
- #define CTRL_PF9 0x8900
- #define CTRL_PF10 0x8a00
- #define CTRL_PF11 0x8b00
- #define CTRL_PF12 0x8c00
- #define CTRL_PF13 0x8d00
- #define CTRL_PF14 0x8e00
- #define CTRL_PF15 0x8f00
- #define CTRL_PF16 0x9000
- #define META_PF1 0x9100
- #define META_PF2 0x9200
- #define META_PF3 0xf300 /* don't use $93 (CTRL-S) */
- #define META_PF4 0x9400
- #define META_PF5 0x9500
- #define META_PF6 0x9600
- #define META_PF7 0x9700
- #define META_PF8 0x9800
- #define META_PF9 0x9900
- #define META_PF10 0x9a00
- #define META_PF11 0x9b00
- #define META_PF12 0x9c00
- #define META_PF13 0x9d00
- #define META_PF14 0x9e00
- #define META_PF15 0x9f00
- #define META_PF16 0xe000
-
- #define UP_KEY 0xe100
- #define DOWN_KEY 0xe200
- #define RIGHT_KEY 0xe300
- #define LEFT_KEY 0xe400
- #define HOME_KEY 0xe500
- #define END_KEY 0xe600
- #define PGUP_KEY 0xe700
- #define PGDN_KEY 0xe800
- #define INS_KEY 0xe900
- #define DEL_KEY 0x007f
- #define DELK_THRU_MTTK 0x00ea
- #define HELP_KEY 0xeb00
- #define SETUP_KEY 0xec00
- #define STOP_KEY 0xed00
- #define SHORT_BREAK 0x00ee /* CTRL-ESC */
- #define LONG_BREAK 0x00ef /* SHIFT-ESC */
- #define NE_KEY 0xf200 /* kana 'ne' key (quote char 'H' + 0x80) */
- /* next f4 */
-
- /*
- * CTRL-PFkey or META-PFKey definition
- */
- #define PF_CLEAR_TEXT CTRL_PF1
- #define PF_CLEAR_GRAPHIC CTRL_PF2
- #define PF_LINE_MODE CTRL_PF3
- #define PF_PASTE CTRL_PF4
- #define PF_HIST_EDIT CTRL_PF5
- #define PF_REDIAL CTRL_PF6
- #define PF_BAUD CTRL_PF7
- #define PF_PARITY CTRL_PF8
- #define PF_LOGGING CTRL_PF9
- #define PF_UPLOAD CTRL_PF10
- #define PF_CHDIR META_PF1
- #define PF_XMODEM_REC META_PF2
- #define PF_XMODEM_SEND META_PF3
- #define PF_KERM_REC META_PF4
- #define PF_KERM_SEND META_PF5
- #define PF_KERM_GET META_PF6 /* optional */
- #define PF_KERM_FINISH META_PF7 /* optional */
- #define PF_CALL_OS META_PF8 /* optional */
-
- #define PF_USER META_PF6
- /* META PF6-PF8 are reserved for users. */
- /* You can use these keys freely. */
-
- /* META PF9-PF10 are used by hterm for IBM-PC set-up and exit */
-
-
-
-
-