[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Device names too long for df
From: |
Thomas Stewart |
Subject: |
Re: Device names too long for df |
Date: |
Mon, 23 Feb 2004 18:17:08 +0000 |
User-agent: |
KMail/1.6 |
On Monday 23 February 2004 06:14, Paul Eggert wrote:
> How about having df automatically calculate the column widths based on
> their data, much as coreutils 5.2.0's "ls" already does? That way, we
> wouldn't have to add a new option to "df".
Ye that would be nice, guess I just did the the easy option.
It would evolve:-
- Finding the width of the terminal df is running on, the "COLUMNS"
environment variable could override this.
- Then calculate if all the df columns would fit. Then based on this, print on
one line or split the line in two. And arrange the column widths accordingly.
It is far nicer, but how do you find out the running terminals width, without
curses? I did a quick look round, but found nothing.
Regards
--
Tom
PGP Fingerprint [DCCD 7DCB A74A 3E3B 60D5 DF4C FC1D 1ECA 68A7 0C48]
PGP Publickey [http://www.stewarts.org.uk/public-key.asc]
PGP ID [0x68A70C48]