diff options
Diffstat (limited to 'more.c')
-rw-r--r-- | more.c | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -2,10 +2,11 @@ | |||
2 | * Mini more implementation for busybox | 2 | * Mini more implementation for busybox |
3 | * | 3 | * |
4 | * | 4 | * |
5 | * Copyright (C) 1999 by Lineo, inc. | 5 | * Copyright (C) 1995, 1996 by Bruce Perens <bruce@pixar.com>. |
6 | * Blended by Erik Andersen <andersen@lineo.com>, <andersee@debian.org> | 6 | * |
7 | * based on the original more implementation and code from the Debian | 7 | * Latest version blended together by Erik Andersen <andersen@lineo.com>, |
8 | * boot-floppies team. | 8 | * based on the original more implementation by Bruce, and code from the |
9 | * Debian boot-floppies team. | ||
9 | * | 10 | * |
10 | * This program is free software; you can redistribute it and/or modify | 11 | * This program is free software; you can redistribute it and/or modify |
11 | * it under the terms of the GNU General Public License as published by | 12 | * it under the terms of the GNU General Public License as published by |
@@ -68,7 +69,7 @@ static const char more_usage[] = "more [file ...]\n"; | |||
68 | #define TERMINAL_HEIGHT 24 | 69 | #define TERMINAL_HEIGHT 24 |
69 | 70 | ||
70 | 71 | ||
71 | #if defined BB_FEATURE_AUTOWIDTH && ! defined USE_OLD_TERMIO | 72 | #if defined BB_FEATURE_AUTOWIDTH |
72 | static int terminal_width = 0, terminal_height = 0; | 73 | static int terminal_width = 0, terminal_height = 0; |
73 | #else | 74 | #else |
74 | #define terminal_width TERMINAL_WIDTH | 75 | #define terminal_width TERMINAL_WIDTH |
@@ -84,7 +85,7 @@ extern int more_main(int argc, char **argv) | |||
84 | struct stat st; | 85 | struct stat st; |
85 | FILE *file; | 86 | FILE *file; |
86 | #ifdef BB_FEATURE_AUTOWIDTH | 87 | #ifdef BB_FEATURE_AUTOWIDTH |
87 | struct winsize win; | 88 | struct winsize win = {0,0}; |
88 | #endif | 89 | #endif |
89 | 90 | ||
90 | argc--; | 91 | argc--; |