View previous topic :: View next topic |
Author |
Message |
NuclearFusi0n Apprentice
Joined: 20 Jun 2003 Posts: 297
|
Posted: Wed Jan 21, 2004 9:10 am Post subject: columns in ls |
|
|
How can I make ls know how many columns are in my console automatically?
man ls:
Code: | -w, --width cols
Assume the screen is cols columns wide. The default is taken
from the terminal driver if possible; otherwise the environment
variable COLUMNS is used if it is set; otherwise the default is
80. |
What's the "terminal driver"? How can I make ls automatically take advantage of all the size available to it when running it in something like aterm? _________________ I will keel yoo grub |
|
Back to top |
|
|
jmz2 Guru
Joined: 13 Jan 2004 Posts: 421 Location: Finland
|
Posted: Wed Jan 21, 2004 10:37 am Post subject: |
|
|
Terminal driver here is most likely a pseudo terminal, provided by the kernel. You are working with a pseudo terminal whenever you've a terminal window open in X. X and your shell should work together to set terminal properties in case you change the window size.
If your terminal area won't get resized with the window, you propably have the wrong value in your TERM environment value. Try Or then your TERMCAP is not set up properly. Have you tweaked terminal settings?
The -w parameter to ls will propably screw the output if your terminal is not correctly sized. |
|
Back to top |
|
|
|