📄 meta.c
字号:
#ifdef lintstatic char *sccsid = "@(#)meta.c 4.1 (ULTRIX) 7/2/90";#endif lint#include "curses.ext"/* * TRUE => all 8 bits of input character should be passed through. */meta(win,bf)WINDOW *win; int bf;{ int _outch(); if (!has_meta_key) return ERR; /* * Do the appropriate fiddling with the tty driver to make it send * all 8 bits through. On USG this means clearing ISTRIP, on * V7 you have to resort to RAW mode. */#ifdef USG if (bf) { (cur_term->Nttyb).c_iflag &= ~ISTRIP; (cur_term->Nttyb).c_cflag &= ~CSIZE; (cur_term->Nttyb).c_cflag |= CS8; (cur_term->Nttyb).c_cflag &= ~PARENB; } else { (cur_term->Nttyb).c_iflag |= ISTRIP; (cur_term->Nttyb).c_cflag &= ~CSIZE; (cur_term->Nttyb).c_cflag |= CS7; (cur_term->Nttyb).c_cflag |= PARENB; }#else if (bf) raw(); else noraw();#endif reset_prog_mode(); /* * Do whatever is needed to put the terminal into meta-mode. */ if (bf) tputs(meta_on, 1, _outch); else tputs(meta_off, 1, _outch); /* Keep track internally. */ win->_use_meta = bf; return OK;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -