aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/more
Commit message (Collapse)AuthorAgeFilesLines
* Nuke more from the repository.Paul Saab2000-05-2926-9086/+0
| | | | Notes: svn path=/head/; revision=61066
* Back out the previous change to the queue(3) interface.Jake Burkholder2000-05-261-2/+2
| | | | | | | | | It was not discussed and should probably not happen. Requested by: msmith and others Notes: svn path=/head/; revision=60938
* Change the way that the queue(3) structures are declared; don't assume thatJake Burkholder2000-05-231-2/+2
| | | | | | | | | | | the type argument to *_HEAD and *_ENTRY is a struct. Suggested by: phk Reviewed by: phk Approved by: mdodd Notes: svn path=/head/; revision=60833
* In the modern world, things are much faster than when more(1) was created.Brian Feldman2000-05-211-2/+1
| | | | | | | | Scrolling sideways is fast, and a "...skipping..." message making everything blink does much more harm than good. Notes: svn path=/head/; revision=60761
* Catchup with the times:Tim Vanderhoek2000-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). Notes: svn path=/head/; revision=60651
* I'm not sure what posessed me to initialize wraplines to FALSE in the prevTim Vanderhoek2000-05-151-1/+1
| | | | | | | commit, but it's obviously supposed to be initialised to TRUE. Notes: svn path=/head/; revision=60605
* Allow bookmarks to cross files.Tim Vanderhoek2000-05-144-26/+102
| | | | Notes: svn path=/head/; revision=60537
* Backout previous commit to this file: it dies in buildworld environment.Tim Vanderhoek2000-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. Notes: svn path=/head/; revision=60477
* Improve hack from previous commit to this file: exit if we get successiveTim Vanderhoek2000-05-121-5/+15
| | | | | | | EOFs from reading stderr (eg. not from argv[1]). Notes: svn path=/head/; revision=60428
* Use termcap(5) function key sequences rather than hardcoding for syscons.Tim Vanderhoek2000-05-121-8/+24
| | | | | | | Now page-up/down work from xterms. Notes: svn path=/head/; revision=60427
* Create magic variables that return termcap(5) strings for function keys.Tim Vanderhoek2000-05-122-22/+97
| | | | Notes: svn path=/head/; revision=60426
* Fix an uncommon bug that would cause us to stop accepting input if theTim Vanderhoek2000-05-121-0/+10
| | | | | | | user entered a command that filled exactly the remaining screen width. Notes: svn path=/head/; revision=60425
* Only main.c depends on defrc.hTim Vanderhoek2000-05-121-1/+3
| | | | Notes: svn path=/head/; revision=60424
* Unwind state on malloc() failure more carefully: avoids memory leak.Tim Vanderhoek2000-05-111-4/+13
| | | | Notes: svn path=/head/; revision=60379
* Make the TAB key tab. Under syscons, shift-TAB also performs a backtab.Tim Vanderhoek2000-05-113-0/+8
| | | | Notes: svn path=/head/; revision=60344
* Fix a comment and actually expand \t the way the comment suggests.Tim Vanderhoek2000-05-111-6/+10
| | | | Notes: svn path=/head/; revision=60343
* Exit if we read two EOFs from the keyboard input stream. Why two and notTim Vanderhoek2000-05-091-5/+19
| | | | | | | | | one? Just 'cause. PR: misc/14932 Notes: svn path=/head/; revision=60233
* Don't segv if viewing "#" and there is no prev-file (long-standing).Tim Vanderhoek2000-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) Notes: svn path=/head/; revision=60230
* Fix a long vs. int problem that was fatal on i386s with 64bit longs (butTim Vanderhoek2000-05-021-8/+11
| | | | | | | | | not alphas with 64bit longs). Submitted by: bde (a while ago) Notes: svn path=/head/; revision=59885
* #include <errno.h> where needed. Kill extern int errno;.Warner Losh2000-04-141-1/+3
| | | | | | | Minor warnings in tip corrected. Notes: svn path=/head/; revision=59217
* Remove single-space hard sentence breaks. These degrade the qualitySheldon Hearn2000-03-011-1/+2
| | | | | | | | of the typeset output, tend to make diffs harder to read and provide bad examples for new-comers to mdoc. Notes: svn path=/head/; revision=57670
* Correctly backspace over number N that preceeds macros.Tim Vanderhoek2000-01-081-7/+12
| | | | Notes: svn path=/head/; revision=55620
* Dedocument one of the BUGS listed in the last commit. The bug (needlessTim Vanderhoek1999-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). Notes: svn path=/head/; revision=55169
* Rather than use an LRU-ordered circular list to store buffered data,Tim Vanderhoek1999-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). Notes: svn path=/head/; revision=55168
* Delete dead code and clean comments a little.Tim Vanderhoek1999-12-282-8/+15
| | | | Notes: svn path=/head/; revision=55164
* Correctly maintain state when manipulating linked lists. This fixes aTim Vanderhoek1999-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). Notes: svn path=/head/; revision=55160
* Initialize unitialized variable from prev. commit.Tim Vanderhoek1999-12-271-1/+1
| | | | Notes: svn path=/head/; revision=55158
* A missing verb to a sentence from last commit.Tim Vanderhoek1999-12-261-1/+2
| | | | Notes: svn path=/head/; revision=55105
* For some reason the HOME key wasn't documented. Document it. ExpandTim Vanderhoek1999-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. Notes: svn path=/head/; revision=55103
* Allow excessive backspacing to correctly abort an input (most significantlyTim Vanderhoek1999-12-262-12/+22
| | | | | | | a search string input). Notes: svn path=/head/; revision=55102
* Expand source comments a little -=> increased readability.Tim Vanderhoek1999-12-262-8/+35
| | | | Notes: svn path=/head/; revision=55101
* Don't disallow null search patterns --- they are interpreted as beingTim Vanderhoek1999-09-141-7/+10
| | | | | | | | | identical to the previous pattern. Noticed-by: Jeroen Ruigrok/Asmodai Notes: svn path=/head/; revision=51285
* Remove assertion of Shigio Yamaguchi's copyright, by request in bin/13607.Tim Vanderhoek1999-09-101-1/+0
| | | | Notes: svn path=/head/; revision=51136
* Unbroke `make -s' case.Ruslan Ermilov1999-09-101-3/+3
| | | | | | | | PR: 13676 Submitted by: wollman Notes: svn path=/head/; revision=51119
* $Id$ -> $FreeBSD$Peter Wemm1999-09-052-2/+2
| | | | Notes: svn path=/head/; revision=50971
* Thorough revamp of how input commands are processed. This allows customizationTim Vanderhoek1999-09-0321-815/+2774
| | | | | | | | | | | | | | 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?) Notes: svn path=/head/; revision=50866
* $Id$ -> $FreeBSD$Peter Wemm1999-08-2812-12/+12
| | | | Notes: svn path=/head/; revision=50477
* Don't assume all ctags are meant to match a whole line ("^...line...$").Tim Vanderhoek1999-08-171-5/+44
| | | | | | | This lets more(1) work with, for example, /usr/local/share/vim/doc/*.txt. Notes: svn path=/head/; revision=49939
* Various man page cleanup:Mike Pritchard1999-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> Notes: svn path=/head/; revision=49823
* Add $Id$, to make it simpler for members of the translation teams toNik Clayton1999-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 Notes: svn path=/head/; revision=48792
* - When trying to decide if $EDITOR == "vi", match against only the firstTim Vanderhoek1999-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. Notes: svn path=/head/; revision=47766
* No, the space required for a string is strlen() _plus_ one... Oops.Tim Vanderhoek1999-06-041-3/+2
| | | | Notes: svn path=/head/; revision=47741
* Don't print backspaces in first column since they backup to the prev line.Tim Vanderhoek1999-06-021-5/+12
| | | | Notes: svn path=/head/; revision=47690
* Grok gtags too.Tim Vanderhoek1999-06-017-42/+425
| | | | Notes: svn path=/head/; revision=47684
* General code cleanup [incomplete]. Make the arrow keys work.Tim Vanderhoek1999-05-309-91/+339
| | | | Notes: svn path=/head/; revision=47626
* Document another (less-virulent) CRLF-related bug.Tim Vanderhoek1999-05-021-0/+2
| | | | Notes: svn path=/head/; revision=46326
* Remove documentation of CRLF bug from more.1. Sync code with manpage.Tim Vanderhoek1999-04-293-26/+18
| | | | | | | | PR: bin/961 bin/7296 (fix) Submitted by: Garance Alistair Drosehn <gad@eclipse.acs.rpi.edu> Notes: svn path=/head/; revision=46180
* Ignore (effectively) SIGTSTP if we're already in the process of tstoping.Tim Vanderhoek1998-08-031-0/+1
| | | | Notes: svn path=/head/; revision=38031
* Fix coredump when two signals are sent in rapid succession.Tim Vanderhoek1998-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). Notes: svn path=/head/; revision=37979
* Fix compilation for the case where neither ioctl(TIOCGWINSZ)Tim Vanderhoek1998-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> Notes: svn path=/head/; revision=37870