You are not logged in.

#1 2006-01-26 01:31:41

kanpio
Member
From: Poland/Wrocław
Registered: 2006-01-25
Posts: 49

LINES & COLUMNS variables and appearance of text program

By default there is such line in /etc/profile:

export LINES COLUMNS

Unfortunately this makes that when I use nano in konsole or xterm (under KDE) it fits the window size and when I maximize the konsole window nano stays with its old size (I mean it doesn't fit the new window size) what is quite irritating. So I removed that line. Now, when I change the size of the konsole window nano fits to the new dimensions. The problem is that now pacman looks like this during downloading:

:: Retrieving packages from current... 
samba-3.0.21a-3          [####            ]  30%    4311K     6.4K/s    
samba-3.0.21a-3          [####            ]  31%    4322K     6.4K/s    
samba-3.0.21a-3          [####            ]  31%    4334K     6.4K/s    
samba-3.0.21a-3          [####            ]  31%    4345K     6.4K/s    
samba-3.0.21a-3          [####            ]  31%    4356K    45.1K/s    
samba-3.0.21a-3          [####            ]  31%    4368K    45.1K/s    
samba-3.0.21a-3          [####            ]  31%    4368K     9.0K/s    
samba-3.0.21a-3          [####            ]  31%    4380K     9.0K/s    
samba-3.0.21a-3          [####            ]  31%    4396K     9.0K/s    
samba-3.0.21a-3          [####            ]  31%    4412K     9.0K/s    
samba-3.0.21a-3          [####            ]  31%    4423K     9.0K/s    
samba-3.0.21a-3          [####            ]  31%    4434K     9.0K/s    
samba-3.0.21a-3          [####            ]  31%    4446K     9.0K/s    
samba-3.0.21a-3          [#####           ]  32%    4457K     9.0K/s  
00:00:40

Process bar doesn't display in one line but in new line when the percent state has changed.
Is it possible to configure that variables in such way that it work well also with pacman and with nano?

Offline

#2 2006-01-26 01:37:35

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: LINES & COLUMNS variables and appearance of text program

type 'reset' and that usually fixes any display problems in the console.

Offline

Board footer

Powered by FluxBB