summaryrefslogtreecommitdiffstats
path: root/usr.bin/more
Commit message (Collapse)AuthorAgeFilesLines
* Nuke more from the repository.ps2000-05-2926-9086/+0
|
* Back out the previous change to the queue(3) interface.jake2000-05-261-2/+2
| | | | | | It was not discussed and should probably not happen. Requested by: msmith and others
* Change the way that the queue(3) structures are declared; don't assume thatjake2000-05-231-2/+2
| | | | | | | | the type argument to *_HEAD and *_ENTRY is a struct. Suggested by: phk Reviewed by: phk Approved by: mdodd
* In the modern world, things are much faster than when more(1) was created.green2000-05-211-2/+1
| | | | | Scrolling sideways is fast, and a "...skipping..." message making everything blink does much more harm than good.
* Catchup with the times:hoek2000-05-161-25/+42
| | | | | | | | | | | | | | | | | | - Avoid use of word that Americans don't know how to spell - Avoid use of capital letters when referring to command names - Bookmarks do span files - Use .Qq where appropriate. I didn't use .Sq or .Dq where `' and ``'' appear, since it's not clear to me what modern usage of those two macros is. - Say simply: ``See .Xr xxx 1'' rather than ``See the .Xr xxx 1 command''. This former style has undoubtedly increased in popularity due to html and hyperlinks, but it's always been around (esp. for manpage sections other than section 1). - Use .St - Dedocument use of `-' to mean that `more` should read from its standard input. The modern preferred way to read from standard input is by specifying /dev/stdin. This is not a prelude to changing more's behaviour within the short term (ie. at least 3-4 years).
* I'm not sure what posessed me to initialize wraplines to FALSE in the prevhoek2000-05-151-1/+1
| | | | commit, but it's obviously supposed to be initialised to TRUE.
* Allow bookmarks to cross files.hoek2000-05-144-26/+102
|
* Backout previous commit to this file: it dies in buildworld environment.hoek2000-05-121-3/+1
| | | | | I probably forgot to put an ${.OBJDIR} somewhere. I'll redo the change later when I get a chance to test that thesis.
* Improve hack from previous commit to this file: exit if we get successivehoek2000-05-121-5/+15
| | | | EOFs from reading stderr (eg. not from argv[1]).
* Use termcap(5) function key sequences rather than hardcoding for syscons.hoek2000-05-121-8/+24
| | | | Now page-up/down work from xterms.
* Create magic variables that return termcap(5) strings for function keys.hoek2000-05-122-22/+97
|
* Fix an uncommon bug that would cause us to stop accepting input if thehoek2000-05-121-0/+10
| | | | user entered a command that filled exactly the remaining screen width.
* Only main.c depends on defrc.hhoek2000-05-121-1/+3
|
* Unwind state on malloc() failure more carefully: avoids memory leak.hoek2000-05-111-4/+13
|
* Make the TAB key tab. Under syscons, shift-TAB also performs a backtab.hoek2000-05-113-0/+8
|
* Fix a comment and actually expand \t the way the comment suggests.hoek2000-05-111-6/+10
|
* Exit if we read two EOFs from the keyboard input stream. Why two and nothoek2000-05-091-5/+19
| | | | | | one? Just 'cause. PR: misc/14932
* Don't segv if viewing "#" and there is no prev-file (long-standing).hoek2000-05-091-2/+3
| | | | | | Staticize a variable that was meant to be static (broken in r.1.11). PR: bin/11370 Henry Whincup <henry@techiebod.com> (for the segv)
* Fix a long vs. int problem that was fatal on i386s with 64bit longs (buthoek2000-05-021-8/+11
| | | | | | not alphas with 64bit longs). Submitted by: bde (a while ago)
* #include <errno.h> where needed. Kill extern int errno;.imp2000-04-141-1/+3
| | | | Minor warnings in tip corrected.
* Remove single-space hard sentence breaks. These degrade the qualitysheldonh2000-03-011-1/+2
| | | | | of the typeset output, tend to make diffs harder to read and provide bad examples for new-comers to mdoc.
* Correctly backspace over number N that preceeds macros.hoek2000-01-081-7/+12
|
* Dedocument one of the BUGS listed in the last commit. The bug (needlesshoek1999-12-281-3/+0
| | | | | | | calculation of line numbers) never existed and the two bugs that made me think it existed have been fixed (see recent commits about this date to linenum.c:r.1.3 and ch.c:r.1.8 fixing broken line-number buffering and braindead algorithms respectively).
* Rather than use an LRU-ordered circular list to store buffered data,hoek1999-12-281-35/+65
| | | | | | | | | | | | | | | simply keep an index into the last access on the circular list and begin searches at that point. An LRU list is inappropriate here since the vast majority of accesses will occur in the same order that the list is created in. The only case where an LRU is remotely useful here is when reading from a file and the user is jumping to randomish positions and constantly returning to some central position. Even for this case it is such a small optimization as not to be noticed in an interactive program such as more(1). This change results in a _tremendously_ noticable speed-up when reading long files through a pipe (where long = ~200k, machine = ~2.5h single-disk worldstone).
* Delete dead code and clean comments a little.hoek1999-12-282-8/+15
|
* Correctly maintain state when manipulating linked lists. This fixes ahoek1999-12-271-3/+8
| | | | | bug that prevented the line-number buffer from working correctly. AFAIK the bug is still present in other derivatives of more(1).
* Initialize unitialized variable from prev. commit.hoek1999-12-271-1/+1
|
* A missing verb to a sentence from last commit.hoek1999-12-261-1/+2
|
* For some reason the HOME key wasn't documented. Document it. Expandhoek1999-12-262-3/+32
| | | | | | the docs on a couple other keys. While I'm here, document another ~3 bugs that have been around for all eternity in the hope that I'll someday bother to fix them.
* Allow excessive backspacing to correctly abort an input (most significantlyhoek1999-12-262-12/+22
| | | | a search string input).
* Expand source comments a little -=> increased readability.hoek1999-12-262-8/+35
|
* Don't disallow null search patterns --- they are interpreted as beinghoek1999-09-141-7/+10
| | | | | | identical to the previous pattern. Noticed-by: Jeroen Ruigrok/Asmodai
* Remove assertion of Shigio Yamaguchi's copyright, by request in bin/13607.hoek1999-09-101-1/+0
|
* Unbroke `make -s' case.ru1999-09-101-3/+3
| | | | | PR: 13676 Submitted by: wollman
* $Id$ -> $FreeBSD$peter1999-09-052-2/+2
|
* Thorough revamp of how input commands are processed. This allows customizationhoek1999-09-0321-818/+2777
| | | | | | | | | | | of user keys (documentation pending). The only key whose semantics have changed is the capital 'N' key, which now performs a repeat-search in the opposite direction (just like in vi). This commit is a little bulkier than what I had originally planned. I'm not completely happy with the direction it went, but it's definately an improvement, and the alternative is to continue becoming irrelevant compared to GNU less. (Does anyone even _use_ /usr/bin/more these days?)
* $Id$ -> $FreeBSD$peter1999-08-2812-12/+12
|
* Don't assume all ctags are meant to match a whole line ("^...line...$").hoek1999-08-171-5/+44
| | | | This lets more(1) work with, for example, /usr/local/share/vim/doc/*.txt.
* Various man page cleanup:mpp1999-08-151-3/+3
| | | | | | | | | - Sort xrefs - Be consistent with section names as outlines in mdoc(7). - Other misc mdoc cleanup. PR: doc/13144 Submitted by: Alexey M. Zelkin <phantom@cris.net>
* Add $Id$, to make it simpler for members of the translation teams tonik1999-07-121-0/+1
| | | | | | | | | | | | | | | | | track. The $Id$ line is normally at the bottom of the main comment block in the man page, separated from the rest of the manpage by an empty comment, like so; .\" $Id$ .\" If the immediately preceding comment is a @(#) format ID marker than the the $Id$ will line up underneath it with no intervening blank lines. Otherwise, an additional blank line is inserted. Approved by: bde
* - When trying to decide if $EDITOR == "vi", match against only the firsthoek1999-06-051-5/+28
| | | | | | | two characters of $EDITOR. This allows things like "vim" and "vi -G" (although nvi would fail...oh well). - Avoid certain cases where the editor is passed an invalid line number.
* No, the space required for a string is strlen() _plus_ one... Oops.hoek1999-06-041-3/+2
|
* Don't print backspaces in first column since they backup to the prev line.hoek1999-06-021-5/+12
|
* Grok gtags too.hoek1999-06-017-42/+425
|
* General code cleanup [incomplete]. Make the arrow keys work.hoek1999-05-309-91/+339
|
* Document another (less-virulent) CRLF-related bug.hoek1999-05-021-0/+2
|
* Remove documentation of CRLF bug from more.1. Sync code with manpage.hoek1999-04-293-26/+18
| | | | | PR: bin/961 bin/7296 (fix) Submitted by: Garance Alistair Drosehn <gad@eclipse.acs.rpi.edu>
* Ignore (effectively) SIGTSTP if we're already in the process of tstoping.hoek1998-08-031-0/+1
|
* Fix coredump when two signals are sent in rapid succession.hoek1998-07-312-2/+3
| | | | | | | | | PR: bin/5721 Submitted by: Oliver Fromme <oliver.fromme@heim3.tu-clausthal.de> Also, add "volatile" to a variable modified by signal handlers (coincidentally, the same variable involved in the above fix, although this isn't related to the reported problem).
* Fix compilation for the case where neither ioctl(TIOCGWINSZ)hoek1998-07-261-1/+2
| | | | | | | nor ioctl(WIOCGETD) exist. This case doesn't occur under FreeBSD. PR: bin/5996 Submitted by: Max Euston <meuston@jmrodgers.com>
OpenPOWER on IntegriCloud