I want to add a new applet, setterm

Rob Landley rob at landley.net
Sat Sep 3 02:05:52 UTC 2005


On Friday 02 September 2005 09:02, Lord Sidiuz wrote:
> well, hello, how do you feel about adding setterm to bb, don't get
> scared it wont use neither ncurses termcap terminfo, notthing actually
> just scapes secuences
>
> ( please forgive me if some words sounds ugly but writing in english is
> hard )
>
> in fact I' ve allready coded it and it working great so, tell me your
> opinions and if their are positive then teel me who should I've sendit
> to.
>
> the total cost for setterm is one enviromental var ( PS3, if you think
> of a better name say so please, but since ps1 and ps2 allready are
> used for the promt and sometimes ( most times), they have escapes sec.
> it seemed natural, and just 32 bytes in the bb binary, yeah I can't
> believe it either wend I started in the 0.6 version it was 690 bytes
> but whend I passed to 1.0 it only added 32 bytes total.

Is this setterm the same one as I get when I type "man setterm"?  If so, 
what's PS3 for?

> if internationalitation is what you wan't it can be done at compile
> time, just make usage.h be a symlink to usage_english.h and anyone can
> make a usage_spanish.h or usage_deucth.h and then edit the symlink to
> get the rigth languaje, ok it would also be nessesary to change every
> source that use
>  printf ( " hello something error\n " );
>
> to this
>  printf ( HELLO_SOMETHING_ERROR );
>
> and make one file containing all the strings e.g.

I'm familiar with this sort of thing.  We should actually have a message 
lookup table we index into, because gcc sucks at merging duplicate strings.  
(The macro can hide that.)

That's probably a good idea anyway. :)

I'm sure we could convince Vladimir to give us a russian 
internationalization...

> god I' ve said to much well I'll shut up now.

Sounded good to me so far.  I'll let you know if you say something I disagree 
with.  (Also, disagreeing with me is not necessarily a BAD thing.  People who 
disagree with me have been right on a number of occasions...)

Rob



More information about the busybox mailing list