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.
If it's meaningful, for konsole, I do not use a LANG or any LC_*
variables and the TERM variable is xterm.
The difficult problem is in busybox where there is no scroll back
capability.
The problem should be relatively easy to reproduce. Get a copy of
debian-8.1.0-amd64-DVD-1.iso and boot it either to HW or in a virtual
system (I'm using qemu). Follow the prompts and drop to a terminal and
then run fdisk.
-- Bruce
-- Bruce
--
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