option.c
来自「speech signal process tools」· C语言 代码 · 共 51 行
C
51 行
/* Last update: 01/13/88 11:17 AM (Edition: 5) */#include <stdio.h>#include <strings.h>#include "form.h"#include "basic.h"unsigned char Rvideo; /* reverse video */unsigned char Undline; /* under line */unsigned char Hilite; /* high light */unsigned char Shell = CSH; /* output script type */extern char Varfile[];extern char Enter_mode[];extern char Exit_mode[]; /*-------------------------------------------------------------05/08/86-+| || set_options : set form editor options || |+----------------------------------------------------------------------*/set_options (hilite, rvideo, undline, fname)int hilite; /* highlight attribute */int rvideo; /* reverse video attribute */int undline; /* underline attribute */char *fname; /* output variable file name */ { char sbuf [80]; /* set mode */ char ebuf [80]; /* exit mode */ ENTER(set_options); sbuf[0] = ebuf[0] = EOS; if (hilite) { get_hilite (sbuf, ebuf); strcat (Enter_mode, sbuf); strcat (Exit_mode, ebuf); } if (undline) { get_undline (sbuf, ebuf); strcat (Enter_mode, sbuf); strcat (Exit_mode, ebuf); } if (rvideo) { get_rvideo (sbuf, ebuf); strcat (Enter_mode, sbuf); strcat (Exit_mode, ebuf); } if (fname) strncpy (Varfile, fname, MAXFNAME); EXIT; }
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?