[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    COLUMNS in busybox?
From:       Alexander Krause <alexander.krause () erazor-zone ! de>
Date:       2006-04-30 19:50:41
Message-ID: 200604302150.41915.alexander.krause () erazor-zone ! de
[Download RAW message or body]

Hi,

I wrote a script to write stuff on the right side of a terminal for example 
like those '[ OK ]' messages in init-scripts.

I'd like to implement it in a shell script like this:
echor() {
  printf "%${COLUMNS}s%s"  $1
}

The only problem I'm having is, that BB does not provide COLUMNS in my ENV :-(

Well, I'm not quite sure if there is another way to get the column-count or 
maybe there is already some kind of echor implemented?

Anyway, what about adding COLUMNS in ENV when 'CONFIG_FEATURE_AUTOWIDTH=y' is 
set?

Opinions? :-)

-- 
Alexander Krause
Amtmann-Kästner-Platz 11
99091 Erfurt

Mail alexander.krause@erazor-zone.de
Tel. +49 (179) 4725826
_______________________________________________
busybox mailing list
busybox@busybox.net
http://busybox.net/cgi-bin/mailman/listinfo/busybox

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic