📄 term.h
字号:
Column_address, /* Set cursor column (PG) */ Command_character, /* Term. settable cmd char in prototype */ Cursor_address, /* Cursor motion to row #1 col #2 (PG) */ Cursor_down, /* Down one line */ Cursor_home, /* Home cursor (if no cup) */ Cursor_invisible, /* Make cursor invisible */ Cursor_left, /* Move cursor left one space. */ Cursor_mem_address, /* Memory relative cursor addressing. */ Cursor_normal, /* Make cursor appear normal (undo vs/vi) */ Cursor_right, /* Non-destructive space (cursor right) */ Cursor_to_ll, /* Last line, first column (if no cup) */ Cursor_up, /* Upline (cursor up) */ Cursor_visible, /* Make cursor very visible */ Delete_character, /* Delete character (P*) */ Delete_line, /* Delete line (P*) */ Dis_status_line, /* Disable status line */ Down_half_line, /* Half-line down (forward 1/2 linefeed) */ Enter_alt_charset_mode, /* Start alternate character set (P) */ Enter_blink_mode, /* Turn on blinking */ Enter_bold_mode, /* Turn on bold (extra bright) mode */ Enter_ca_mode, /* String to begin programs that use cup */ Enter_delete_mode, /* Delete mode (enter) */ Enter_dim_mode, /* Turn on half-bright mode */ Enter_insert_mode, /* Insert mode (enter); */ Enter_secure_mode, /* Turn on blank mode (chars invisible) */ Enter_protected_mode, /* Turn on protected mode */ Enter_reverse_mode, /* Turn on reverse video mode */ Enter_standout_mode, /* Begin stand out mode */ Enter_underline_mode, /* Start underscore mode */ Erase_chars, /* Erase #1 characters (PG) */ Exit_alt_charset_mode, /* End alternate character set (P) */ Exit_attribute_mode, /* Turn off all attributes */ Exit_ca_mode, /* String to end programs that use cup */ Exit_delete_mode, /* End delete mode */ Exit_insert_mode, /* End insert mode; */ Exit_standout_mode, /* End stand out mode */ Exit_underline_mode, /* End underscore mode */ Flash_screen, /* Visible bell (may not move cursor) */ Form_feed, /* Hardcopy terminal page eject (P*) */ From_status_line, /* Return from status line */ Init_1string, /* Terminal initialization string */ Init_2string, /* Terminal initialization string */ Init_3string, /* Terminal initialization string */ Init_file, /* Name of file containing is */ Insert_character, /* Insert character (P) */ Insert_line, /* Add new blank line (P*) */ Insert_padding, /* Insert pad after character inserted (P*) */ Key_backspace, /* Sent by backspace key */ Key_catab, /* Sent by clear-all-tabs key. */ Key_clear, /* Sent by clear screen or erase key. */ Key_ctab, /* Sent by clear-tab key */ Key_dc, /* Sent by delete character key. */ Key_dl, /* Sent by delete line key. */ Key_down, /* Sent by terminal down arrow key */ Key_eic, /* Sent by rmir or smir in insert mode. */ Key_eol, /* Sent by clear-to-end-of-line key. */ Key_eos, /* Sent by clear-to-end-of-screen key. */ Key_f0, /* Sent by function key f0. */ Key_f1, /* Sent by function key f1. */ Key_f10, /* Sent by function key f10. */ Key_f2, /* Sent by function key f2. */ Key_f3, /* Sent by function key f3. */ Key_f4, /* Sent by function key f4. */ Key_f5, /* Sent by function key f5. */ Key_f6, /* Sent by function key f6. */ Key_f7, /* Sent by function key f7. */ Key_f8, /* Sent by function key f8. */ Key_f9, /* Sent by function key f9. */ Key_home, /* Sent by home key. */ Key_ic, /* Sent by ins char/enter ins mode key. */ Key_il, /* Sent by insert line. */ Key_left, /* Sent by terminal left arrow key */ Key_ll, /* Sent by home-down key */ Key_npage, /* Sent by next-page key */ Key_ppage, /* Sent by previous-page key */ Key_right, /* Sent by terminal right arrow key */ Key_sf, /* Sent by scroll-forward/down key */ Key_sr, /* Sent by scroll-backward/up key */ Key_stab, /* Sent by set-tab key */ Key_up, /* Sent by terminal up arrow key */ Keypad_local, /* Out of "keypad transmit" mode */ Keypad_xmit, /* Put terminal in "keypad transmit" mode */ Lab_f0, /* Labels on function key f0 if not f0 */ Lab_f1, /* Labels on function key f1 if not f1 */ Lab_f10, /* Labels on function key f10 if not f10 */ Lab_f2, /* Labels on function key f2 if not f2 */ Lab_f3, /* Labels on function key f3 if not f3 */ Lab_f4, /* Labels on function key f4 if not f4 */ Lab_f5, /* Labels on function key f5 if not f5 */ Lab_f6, /* Labels on function key f6 if not f6 */ Lab_f7, /* Labels on function key f7 if not f7 */ Lab_f8; /* Labels on function key f8 if not f8 */};struct strs2 { charptr Lab_f9, /* Labels on function key f9 if not f9 */ Meta_off, /* Turn off "meta mode" */ Meta_on, /* Turn on "meta mode" (8th bit) */ Newline, /* Newline (behaves like cr followed by lf) */ Pad_char, /* Pad character (rather than null) */ Parm_dch, /* Delete #1 chars (PG*) */ Parm_delete_line, /* Delete #1 lines (PG*) */ Parm_down_cursor, /* Move cursor down #1 lines. (PG*) */ Parm_ich, /* Insert #1 blank chars (PG*) */ Parm_index, /* Scroll forward #1 lines. (PG) */ Parm_insert_line, /* Add #1 new blank lines (PG*) */ Parm_left_cursor, /* Move cursor left #1 spaces (PG) */ Parm_right_cursor, /* Move cursor right #1 spaces. (PG*) */ Parm_rindex, /* Scroll backward #1 lines. (PG) */ Parm_up_cursor, /* Move cursor up #1 lines. (PG*) */ Pkey_key, /* Prog funct key #1 to type string #2 */ Pkey_local, /* Prog funct key #1 to execute string #2 */ Pkey_xmit, /* Prog funct key #1 to xmit string #2 */ Print_screen, /* Print contents of the screen */ Prtr_off, /* Turn off the printer */ Prtr_on, /* Turn on the printer */ Repeat_char, /* Repeat char #1 #2 times. (PG*) */ Reset_1string, /* Reset terminal completely to sane modes. */ Reset_2string, /* Reset terminal completely to sane modes. */ Reset_3string, /* Reset terminal completely to sane modes. */ Reset_file, /* Name of file containing reset string. */ Restore_cursor, /* Restore cursor to position of last sc. */ Row_address, /* Like hpa but sets row. (PG) */ Save_cursor, /* Save cursor position. (P) */ Scroll_forward, /* Scroll text up (P) */ Scroll_reverse, /* Scroll text down (P) */ Set_attributes, /* Define the video attributes (PG9) */ Set_tab, /* Set a tab in all rows, current column. */ Set_window, /* Current window is lines #1-#2 cols #3-#4 */ Tab, /* Tab to next 8 space hardware tab stop. */ To_status_line, /* Go to status line */ Underline_char, /* Underscore one char and move past it */ Up_half_line, /* Half-line up (reverse 1/2 linefeed) */ Init_prog, /* Path name of program for init. */ Key_a1, /* Upper left of keypad */ Key_a3, /* Upper right of keypad */ Key_b2, /* Center of keypad */ Key_c1, /* Lower left of keypad */ Key_c3, /* Lower right of keypad */ Prtr_non; /* Turn on the printer for #1 bytes. */};struct term { char Auto_left_margin, /* cub1 wraps from column 0 to last column */ Auto_right_margin, /* Terminal has automatic margins */ Beehive_glitch, /* Beehive (f1=escape, f2=ctrl C) */ Ceol_standout_glitch, /* Standout not erased by overwriting (hp) */ Eat_newline_glitch, /* newline ignored after 80 cols (Concept) */ Erase_overstrike, /* Can erase overstrikes with a blank */ Generic_type, /* Generic line type (e.g. dialup, switch). */ Hard_copy, /* Hardcopy terminal */ Has_meta_key, /* Has a meta key (shift, sets parity bit) */ Has_status_line, /* Has extra "status line" */ Insert_null_glitch, /* Insert mode distinguishes nulls */ Memory_above, /* Display may be retained above the screen */ Memory_below, /* Display may be retained below the screen */ Move_insert_mode, /* Safe to move while in insert mode */ Move_standout_mode, /* Safe to move in standout modes */ Over_strike, /* Terminal overstrikes */ Status_line_esc_ok, /* Escape can be used on the status line */ Teleray_glitch, /* Tabs destructive, magic so char (t1061) */ Tilde_glitch, /* Hazeltine; can't print ~'s */ Transparent_underline, /* underline character overstrikes */ Xon_xoff; /* Terminal uses xon/xoff handshaking */ short Columns, /* Number of columns in a line */ Init_tabs, /* Tabs initially every # spaces. */ Lines, /* Number of lines on screen or page */ Lines_of_memory, /* Lines of memory if > lines. 0 => varies */ Magic_cookie_glitch, /* Number blank chars left by smso or rmso */ Padding_baud_rate, /* Lowest baud rate where padding needed */ Virtual_terminal, /* Virtual terminal number (CB/Unix) */ Width_status_line; /* # columns in status line */ struct strs strs; struct strs2 strs2; short Filedes; /* file descriptor being written to */#ifndef NONSTANDARD SGTTY Ottyb, /* original state of the terminal */ Nttyb; /* current state of the terminal */#endif};#ifndef NONSTANDARDextern struct term *cur_term;#endif#endif auto_left_margin #ifdef SINGLEextern struct term _first_term;# define CUR _first_term.#else# define CUR cur_term->#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -