📄 version.c
字号:
* v88: Use new format for -P option (thanks to 3/12/88 mark * der Mouse), allow "+-c" without message, * fix bug re BSD hangup. * v89: Turn off line numbers if linenum scan 3/18/88 mark * is interrupted. * v90: Allow -P from within less. 3/30/88 mark * v91: Added tags file support (new -t option) 3/30/88 mark * (thanks to Brian Campbell). * v92: Added -+option syntax. 4/4/88 mark * v93: Add support for slow input (thanks to 4/11/88 mark * Joe Orost & apologies for taking almost * 3 years to get this in!) * v94: Redo reading/signal stuff. 4/11/88 mark * v95: Repaint screen better after signal. 4/20/88 mark * v96: Add /! and ?! commands. 4/21/88 mark * v97: Allow -l/-L from within less. 5/17/88 mark * Eliminate some static arrays (use calloc). * Posted to USENET. * ----------------------------------------------------------------- * v98: Fix incorrect calloc call; uninitialized 10/14/88 mark * var in exec_mca; core dump on unknown TERM. * Make v cmd work if past last line of file. * Fix some signal bugs. * v99: Allow space between -X and string, 10/29/88 mark * when X is a string-valued option. * v100: Fix globbing bug when $SHELL not set; 1/5/89 mark * allow spaces after -t command. * v101: Fix problem with long (truncated) lines 1/6/89 mark * in tags file (thanks to Neil Dixon). * v102: Fix bug with E# when no prev file; 1/6/89 mark * allow spaces after -l command. * v103: Add -N, -f and -? options. Add z and w 3/14/89 mark * commands. Add %L for prompt strings. * v104: Added EDITPROTO. 3/16/89 mark * v105: Fix bug in find_linenum which cached 3/20/89 mark * incorrectly on long lines. * v106: Added -k option and multiple lesskey 3/31/89 mark * files. * v107: Add 8-bit char support and -g option. 4/27/89 mark * Split option code into 3 files. * v108: Allocate position table dynamically 5/5/89 mark * (thanks to Paul Eggert); change % command * from "percent" to vi-style brace finder. * v109: Added ESC-% command, split prim.c. 5/10/89 mark * v110: Fixed bug in + option; fixed repaint bug 5/24/89 mark * under Sun windows (thanks to Paul Eggert). * v111: Generalized # and % expansion; use 5/25/89 mark * calloc for some error messages. * v112: Get rid of ESC-%, add {}()[] commands. 5/30/89 mark * v113: Optimize lseeks (thanks to Paul Eggert). 5/31/89 mark * v114: Added ESC-/ and ESC-/! commands. 7/25/89 mark * v115: Added ESC-n command. 7/26/89 mark * v116: Added find_pos to optimize g command. 7/31/89 mark * v117: Change -f option to -r. 8/1/89 mark * v118: Save positions for all previous files, 8/2/89 mark * not just the immediately previous one. * v119: Save marks across file boundaries. 8/7/89 mark * Add file handle stuff. * v120: Add :ta command. 8/11/89 mark * v121: Add -f option. 8/16/89 mark * v122: Fix performance with many buffers. 8/30/89 mark * v123: Verbose prompts for string options. 8/31/89 mark * Posted beta to USENET. * ----------------------------------------------------------------- * v124: Reorganize search commands, 9/18/89 mark * N = rev, ESC-n = span, add ESC-N. * v125: Fix tab bug (thanks to Alex Liu). 9/18/89 mark * Fix EOF bug when both -w and -c. * v126: Add -j option. 10/25/89 mark * v127: Fix problems with blank lines before BOF. 10/27/89 mark * v128: Add %bj, etc. to prompt strings. 10/27/89 mark * v129: Add -+,-- commands; add set-option and 11/3/89 mark * unset-option to lesskey. * v130: Generalize A_EXTRA to string, remove 11/6/89 mark * set-option, unset-option from lesskey. * v131: Changed name of EDITPROTO to LESSEDIT. 11/7/89 mark * v132: Allow editing of command prefix. 11/8/89 mark * v133: Add -y option (thanks to Jeff Sullivan). 11/16/89 mark * v134: Glob filenames in the -l command. 12/1/89 mark * v135: Combined {}()[] commands into one, and 12/5/89 mark * added ESC-^F and ESC-^B commands. * v136: Added -S, -R flags. Added | command. 1/20/90 mark * Added warning for binary files. (thanks * to Richard Brittain and J. Sullivan). * v137: Rewrote horrible pappend code. 1/21/90 mark * Added * notation for hi-bit chars. * v138: Fix magic cookie terminal handling. 1/24/90 mark * Get rid of "cleanup" loop in ch_get. * v139: Added MSDOS support. (many thanks 1/27/90 mark * to Richard Brittain). * v140: Editing a new file adds it to the 2/7/90 mark * command line list. * v141: Add edit_list for editing >1 file. 2/8/90 mark * v142: Add :x command. 2/10/90 mark * v143: Add * and @ modifies to search cmds. 2/11/90 mark * Change ESC-/ cmd from /@* to / *. * v144: Messed around with ch_zero; 3/1/90 mark * no real change. * v145: Added -R and -v/-V for MSDOS; 3/2/90 mark * renamed FILENAME to avoid conflict. * v146: Pull cmdbuf functions out of command.c 3/5/90 mark * v147: Implement ?@; fix multi-file edit bugs. 3/7/90 mark * v148: Fixed bug in :e<file> then :e#. 3/29/90 mark * v149: Change error,ierror,query to use PARG. 4/3/90 mark * v150: Add LESS_CHARSET, LESS_CHARDEF. 4/6/90 mark * v151: Remove -g option; clean up ispipe. 4/13/90 mark * v152: lsystem() closes input file, for 4/14/90 mark * editors which require exclusive open. * v153: Fix bug if SHELL unset; 4/18/90 mark * fix bug in overstrike control char. * v154: Output to fd 2 via buffer. 4/25/90 mark * v155: Ignore -i if uppercase in pattern 4/30/90 mark * (thanks to Michael Rendell.) * v156: Remove scroll limits in forw() & back(); 5/3/90 mark * causes problems with -c. * v157: Forward search starts at next real line 5/4/90 mark * (not screen line) after jump target. * v158: Added F command. 6/14/90 mark * v159: Fix bug in exiting: output not flushed. 7/29/90 mark * v160: Clear screen before initial output w/ -c. 7/29/90 mark * v161: Add -T flag. 7/29/90 mark * v162: Fix bug with +F on command line. 8/14/90 mark * v163: Added LESSBINFMT variable. 8/21/90 mark * v164: Added -p, LINES, COLUMNS and 9/5/90 mark * unset mark ' == BOF, for 1003.2 D5. * v165: At EOF with -c set, don't display empty 9/6/90 mark * screen when try to page forward. * v166: Fix G when final line in file wraps. 9/6/90 mark * v167: Translate CR/LF -> LF for 1003.2. 9/11/90 mark * v168: Return to curr file if "tag not found". 9/13/90 mark * v169: G goes to EOF even if file has grown. 12/12/90 mark * v170: Add optimization for BSD _setjmp; 1/17/91 mark * fix #include ioctl.h TERMIO problem. * (thanks to Paul Eggert) * Posted to USENET. * ----------------------------------------------------------------- * v171: Fix -? bug in get_filename. 3/6/91 mark * v172: Fix G bug in empty file. 3/15/91 mark * Fix bug with ?\n and -i and uppercase * pattern at EOF! * (thanks to Paul Eggert) * v173: Change N cmd to not permanently change 3/17/91 mark * direction. (thanks to Brian Matthews) * v174: Fix bug with namelogfile not getting 3/18/91 mark * cleared when change files. * v175: Fix bug with ++cmd on command line. 3/18/91 mark * (thanks to Jim Meyering) * v176: Change | to not force current screen, 4/2/91 mark * include marked line, start/end from * top of screen. Improve search speed. * (thanks to Don Mears) * v177: Add LESSHELP variable. 4/2/91 mark * Fix bug with F command with -e. * Try /dev/tty for input before using fd 2. */char version[] = "@(#) less version 177";
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -