aboutsummaryrefslogtreecommitdiff
path: root/util-linux/more.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Vladimir N. Oleynik (vodz) writes:Eric Andersen2004-03-271-22/+21
| | | | | | | | | | | | | | | Ok. Last patch reduce 73 bytes for compensate (and over) your changes ;-) Comments: Added cin_fileno variable, auto setted to 0 from BSS and have "eq" stdin descriptor if isatty(stout)==0, removed global variable FILE* cin. Removed default setting to terminal_width/terminal_height, this used only from main() and setted after call get_terminal_width_height() always correct. Variable please_display_more_prompt changed to bits logic, have size reducing. --w vodz
* Brian Pomerantz writes:Eric Andersen2004-03-231-1/+3
| | | | | | | | | | | | | | | | I've noticed a bug in the "autowidth" feature more, and is probably in others. The call to the function get_terminal_width_height() passes in a file descriptor but that file descriptor is never used, instead the ioctl() is called with 0. In more_main() the call to get_terminal_width_height() passes 0 as the file descriptor instead of fileno(cin). This isn't a problem when you more a file (e.g. "more /etc/passwd") but when you pipe a file to it (e.g. "cat /etc/passwd | more") the size of the terminal cannot be determined because file descriptor 0 is not a terminal. The fix is simple, I've attached a patch for more.c and get_terminal_width_height.c. BAPper
* Remove trailing whitespace. Update copyright to include 2004.Eric Andersen2004-03-151-4/+4
|
* match changes made to cmdeditEric Andersen2003-12-231-3/+0
|
* Be entirely consistant when using ioctl(0, TIOCGWINSZ, &winsize)Eric Andersen2003-09-151-11/+6
| | | | | to ensure proper fallback behavior on, i.e. serial consoles. -Erik
* Update a bunch of docs. Run a script to update my email addr.Eric Andersen2003-07-141-2/+2
|
* Major coreutils update.Manuel Novoa III2003-03-191-2/+2
|
* Correct some init issues, update email address, last_patch78 by VladimirGlenn L McGrath2003-01-131-1/+1
| | | | N. Oleynik
* Update some missing copyright noticesEric Andersen2002-04-131-1/+1
|
* Fix running more on files in the (broken) procfs that claim 0 lengthEric Andersen2001-12-061-1/+2
| | | | | when that isn't actually true. -Erik
* Major rework of the directory structure and the entire build system.Eric Andersen2001-10-241-6/+6
| | | | -Erik
* Add support for devfs device names.Matt Kraai2001-07-231-2/+2
|
* Vladimir's last_patch_15Glenn L McGrath2001-06-261-51/+49
|
* Remove/replace the "div" call.Eric Andersen2001-05-161-5/+7
|
* Move messages.c to libbb. Make each string in messages.c be its own .o file.Eric Andersen2001-04-251-3/+0
| | | | | | | This way, we can new get rid of all that tedious #define rubbish we used to need to enable specific messages. This way is enormously simpler, and as a bonus also ends up saving us 96 bytes. -Erik
* Fix return code and don't output spurious newlines.Matt Kraai2001-04-121-10/+8
|
* An optimization from VladimirEric Andersen2001-04-061-4/+2
|
* more FILE_OFFSET_BITS == 64 adjustments.Eric Andersen2001-04-051-4/+4
|
* Patch to use xfopen from Jeff GarzikEric Andersen2001-03-231-1/+1
|
* Yet another fix. I think I got it this time.Eric Andersen2001-02-231-8/+10
| | | | -Erik
* Account for remainder, and reset page_height for each and every page.Eric Andersen2001-02-221-4/+10
|
* Adjust the terminal height for any overlap, so that no linesEric Andersen2001-02-221-5/+16
| | | | | get lost off the top -Erik
* It turns out that DODMALLOC was broken when I reorganized busybox.hEric Andersen2001-02-201-1/+1
| | | | | | header file usage before the 0.49 release. To fix it, I had to move the '#include "busybox.h"' to the end of the list of #include files. -Erik
* It seems I stupidly checked in a silly test I was making.Eric Andersen2001-02-021-1/+0
| | | | -Erik
* Apply a patch from Larry Doolittle to add "-all" and "-none" switchesEric Andersen2001-02-011-0/+1
| | | | | | | to multibuild.pl. I did a little formatting adjustments to make it _very_ obvious when things stop working. I also removed the USE_PROCFS config option -- just do the right thing when USE_DEVPS_PATCH is enabled. -Erik
* Fix header file usage -- there were many unnecessary header files included inEric Andersen2001-01-271-0/+1
| | | | | | | busybox.h which slowed compiles. I left only what was needed and then fixed up all the apps to include their own header files. I also fixed naming for pwd.h and grp.h functions. Tested to compile and run with libc5, glibc, and uClibc. -Erik
* Make cin be staticEric Andersen2001-01-261-1/+1
|
* Eliminate calls of the form "fprintf(stdout,". Thanks for the idea toMatt Kraai2001-01-181-6/+6
| | | | Vladimir N. Oleynik.
* Improvements from Vladimir N. Oleynik.Matt Kraai2000-12-301-1/+1
|
* Cleanup of duplicated symbols -- found by compiling withEric Andersen2000-11-071-1/+1
| | | | LDFLAGS += -Wl,-warn-common
* Consolidate handling of some fopen failures.Matt Kraai2000-09-271-5/+1
|
* Renamed "internal.h" to the more sensible "busybox.h".Eric Andersen2000-09-251-1/+1
| | | | -Erik
* Large file >2Gib support.Eric Andersen2000-09-211-0/+4
|
* Centralize handling of --help.Matt Kraai2000-07-191-4/+0
|
* Extract usage information into a separate file.Matt Kraai2000-07-161-6/+0
|
* More fixes for "missing initializers"Pavel Roskin2000-07-141-1/+1
|
* Cleaned up some #ifdef spiderwebs.Mark Whitley2000-06-211-30/+19
|
* Updates to a number of apps to remove warnings/compile errors under libc5.Eric Andersen2000-06-191-1/+1
| | | | | Tested under both libc5 and libc6 and all seems well with these fixes. -Erik
* Added some comments and changed a variable name to be more meaningful. NoMark Whitley2000-06-161-5/+22
| | | | fixes yet for the space bug, but should be coming soon.
* A number of additional fixed from Pavel Roskin, note some more bugs in theEric Andersen2000-06-021-2/+2
| | | | | | TODO list. Add Glenn to the Authors list for writing a mini ar for BusyBox, which is now included. -Erik
* Lots of updates. Finished implementing BB_FEATURE_TRIVIAL_HELPErik Andersen2000-05-121-2/+9
| | | | | | | | which lets you compile out most of the "--help" output, saving up to 17k. Renamed mnc to nc. -Erik
* Latest and greatest. Some effort at libc5 (aiming towards newlib)Erik Andersen2000-04-281-2/+10
| | | | | compatability. -Erik
* Some more updates and such...Erik Andersen2000-04-211-0/+2
| | | | -Erik
* More Doc updates. cmdedit and more termio fixes.Erik Andersen2000-04-211-6/+15
|
* UpdatesErik Andersen2000-04-181-17/+5
| | | | -Erik
* Some formatting updates (ran the code through indent)Erik Andersen2000-02-081-97/+102
| | | | -Erik
* StufEric Andersen1999-11-191-8/+0
|
* StufEric Andersen1999-11-191-1/+1
|
* Latest and greatestEric Andersen1999-11-121-6/+7
| | | | -Erik
* Updates to usage, and made tar work.Eric Andersen1999-11-101-1/+1
| | | | -Erik