On Mon, Aug 31, 2015 at 11:20:24AM -0500, Bruce Dubbs wrote: > Bernhard Voelker wrote: > >On 08/31/2015 04:04 AM, Bruce Dubbs wrote: > >>I have a question about (or a enhancement request) running fdisk. When > >>asking to list known partition types, I get about 70 lines of output. > >>Generally that would not be a problem, but I was running in a Debian > >>install/rescue iso that uses busybox in a 25 line terminal. I do not > >>have a way to scroll up and thus cannot see the first 40 or so partition > >>types. > >> > >>Is there a way to use a pager for this? In this situation 'more' is > >>available but 'less' is not. Otherwise I think an automatic pause every > >>20 lines or so would be appropriate to build into the partition type > >>listing. > > > >hmm, I'm getting 27 lines (at a maximum line length of 79 characters) as > >output of the 'l' command here - even if I resize the xterm to 20x80 > >characters. > >OTOH, the main help output via the 'm' command uses 38 lines. Shouldn't > >you also have issues with that one in your environment? > > In a konsole terminal resized to > > # echo $LINES > 25 > # fdisk --version > fdisk from util-linux 2.26.2 > > Yes, the main menu scrolls off the top do the topmost line is: > > n add a new partition > > but that is not a big problem in konsole because I can scroll back the > buffer. The l command lists the partition types and the topmost line of the > screen is entry number 44. > > The difficult problem is in busybox where there is no scroll back > capability. If you do not switch VTs, the Linux kernel has a limited "scroll back" capability: use <Shift>+<PgUp> or <Shift>+<PgDn>. There are serious enough limitations to this that it's not really viable except as a workaround: -only things that have been on-screen after you last switched to the current VT will be visible -switch VTs, and you lose history But it may be useful to you. HTH, Isaac Dunham -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html