[BusyBox] Weird stuff when using escape sequences

Rory Vieira rory.vieira at coolview.nl
Sat Aug 14 17:06:16 UTC 2004


Hi,

Been using busybox for quite some time now and have recently been trying
out 1.00rc2.
I seem to have run into a few minor problems that I can not put my hands
on...

I'm using the echo command in combination with some escape sequences to
perform
cursor movement/text colors etc. The command I use to perform it is:

#!/bin/sh
. /etc/init.d/rc.conf

echo -n " - Mounting /proc device..."
/bin/mount -n -t proc proc /proc && echo $rc_done
...

Output:
 - Mounting /proc device...                              done

The word done is in green.
rc.conf is my rewrite of suse's rc.config file... (containing $rc_done)
rc.conf is attached to this email...

Now my problem consists of the following:

Recompiling 0.60.5 disabled the escape sequences completely.
Elas, all I have is a small working dynamic binary from previous tests,
no config.
After wgetting the tar I simply changed what I needed, and built it.
I can not find any option that would enable/disable this.
Questions here is:

Is it possible to recreate the configuration from a dynamic stripped
binary?
What could be causing the escape sequences to 'no longer work'?

Compiling 1.00-rc2 gives me a new problem.
Output example (1.00-rc2):

doneounting /proc device...

As you can see the word done is NOT on the end of the line, but in front
overwriting anything...

I hope someone understands my problem and can help me solve it...

Thanks in advance for any help given,
Rory Vieira

rory dot vieira at coolview dot nl

Mollegang 10b
5344LR Oss
The Netherlands
M. +31 (0)6-29212838


begin 666 rc.conf
M(R O971C+VEN:70N9"]R8RYC;VYF#0HC#0HC($)A<VEC($%N<VD at 17-C87!E
M(%-E<75E;F-E<SH-"B,-"B, at 7# S,R @(" @(" @(" @(" @(" @87-C:6D@
M15-#87!E#0HC#0HC($-U<G-O<B!-86YA9V5M96YT#0HC(%PP,S-;/$P^.SQ#
M/D@@;W(@(" @($UO=F4 at 8W5R<V]R('1O($QI;F4@/$P^+"!#;VQU;6X@/$,^
M#0HC(%PP,S-;/$P^.SQ#/F8-"B, at 7# S,UL\6#Y!(" @(" @(" @(" @36]V
M92!C=7)S;W(@=7 @/%@^(&QI;F5S#0HC(%PP,S-;/%@^0B @(" @(" @(" @
M($UO=F4 at 8W5R<V]R(&1O=VX@/%@^(&QI;F5S#0HC(%PP,S-;/%@^0R @(" @
M(" @(" @($UO=F4 at 8W5R<V]R(')I9VAT(#Q8/B!L:6YE<PT*(R!<,#,S6SQ8
M/D0@(" @(" @(" @("!-;W9E(&-U<G-O<B!L969T(#Q8/B!L:6YE<PT*(R!<
M,#,S6SQ,/CL\0SY2(" @(" @("!297!O<G0 at 8W5R<F5N="!C;W)S;W(@;&EN
M92 F(&-O;'5M;@T*(R!<,#,S6W,@(" @(" @(" @(" @("!3879E(&-U<G)E
M;G0 at 8W5R<V]R('!O<VET:6]N#0HC(%PP,S-;=2 @(" @(" @(" @(" @(%)E
M='5R;B!T;R!S879E9"!C=7)S;W(@<&]S:71I;VX-"B,-"B, at 4V-R965N($UA
M;F%G96UE;G0-"B, at 7# S,ULR2B!O<B @(" @(" @(" @0VQE87(@<V-R965N
M(&%N9"!H;VUE(&-U<G-O<@T*(R!<,#,S8PT*(R!<,#,S6TL@(" @(" @(" @
M(" @("!#;&5A<B!T;R!E;F0@;V8@;&EN90T*(R!<,#,S6ST\33X[-V@@;W(@
M(" @("!3970@<V-R965N(&UO9&4-"B, at 7# S,UL]:"!O<B @(" @(" @(" @
M/$T^($UO9&4-"B, at 7# S,UL],&@@;W(@(" @(" @(" @(# @(#0P*C(U(&UO
M;F\-"B, at 7# S,UL_-V@@(" @(" @(" @(" @(#$@(#0P*C(U(&-O;&]R#0HC
M(" @(" @(" @(" @(" @(" @(" @(" R(" X,"HR-2!M;VYO#0HC(" @(" @
M(" @(" @(" @(" @(" @(" S(" X,"HR-2!C;VQO<@T*(R @(" @(" @(" @
M(" @(" @(" @(" @-" @,S(P*C(P,"!C;VQO<B!G<F%P:&EC<PT*(R @(" @
M(" @(" @(" @(" @(" @(" @-2 @,S(P*C(P,"!M;VYO(&=R87!H:6-S#0HC
M(" @(" @(" @(" @(" @(" @(" @(" V(" V-# J,C P(&UO;F\@9W)A<&AI
M8W,-"B,@(" @(" @(" @(" @(" @(" @(" @(#<@(%=R87 @870 at 96YD(&]F
M(&QI;F4-"B, at 7# S,UL]/$T^.S<Q(&]R(" @(" @4F5S971S(&UO9&4@/$T^
M#0HC(%PP,S-;/3$@;W(-"B, at 7# S,UL],#$@;W(-"B, at 7# S,UL_-S$-"B,-
M"B, at 5&5X="!-86YA9V5M96YT#0HC(%PP,S-;/$$^*#L\0SXI;2 @(" @($-H
M86YG92!T97AT(&%T=')I8G5T92 O(&-O;&]R#0HC(" @(" @(" @(" @(" @
M(" @(" @(#Q!/B!!='1R:6)U=&4-"B,@(" @(" @(" @(" @(" @(" @(" @
M(# @($YO<FUA; T*(R @(" @(" @(" @(" @(" @(" @(" @,2 @0F]L9 T*
M(R @(" @(" @(" @(" @(" @(" @(" @-" @56YD97)L:6YE("AM;VYO(&]N
M;'DI#0HC(" @(" @(" @(" @(" @(" @(" @(" U("!";&EN:PT*(R @(" @
M(" @(" @(" @(" @(" @(" @-R @4F5V97)S90T*(R @(" @(" @(" @(" @
M(" @(" @(" @." @26YV:7-I8FQE#0HC#0HC(" @(" @(" @(" @(" @(" @
M(" @($9'/$,^($="/$,^($-O;&]R*# I($-O;&]R*#$I#0HC(" @(" @(" @
M(" @(" @(" @(" @(" S," @(" T," @($)L86-K(" @($1A<FL at 1W)E>0T*
M(R @(" @(" @(" @(" @(" @(" @(" @,S$@(" @-#$@("!2960@(" @("!,
M:6=H="!2960-"B,@(" @(" @(" @(" @(" @(" @(" @(#,R(" @(#0R(" @
M1W)E96X@(" @3&EG:'0 at 1W)E96X-"B,@(" @(" @(" @(" @(" @(" @(" @
M(#,S(" @(#0S(" @0G)O=VX@(" @665L;&]W#0HC(" @(" @(" @(" @(" @
M(" @(" @(" S-" @(" T-" @($)L=64@(" @($QI9VAT($)L=64-"B,@(" @
M(" @(" @(" @(" @(" @(" @(#,U(" @(#0U(" @36%G96YT82 @3&EG:'0@
M36%G96YT80T*(R @(" @(" @(" @(" @(" @(" @(" @,S8@(" @-#8@("!#
M>6%N(" @("!,:6=H="!#>6%N#0HC(" @(" @(" @(" @(" @(" @(" @(" S
M-R @(" T-R @($=R87D@(" @(%=H:71E#0HC#0H-"B,@(" @7# S,UL\3E5-
M/D<@("!M;W9E('1O(&-O;'5M;B \3E5-/B H;&EN=7@@8V]N<V]L92P@>'1E
M<FTL(&YO="!V=#$P,"D-"B,@(" @7# S,UL\3E5-/D,@("!M;W9E(#Q.54T^
M(&-O;'5M;G, at 9F]R=V%R9"!B=70@;VYL>2!U<'1O(&QA<W0 at 8V]L=6UN#0HC
M(" @(%PP,S-;/$Y533Y$(" @;6]V92 \3E5-/B!C;VQU;6YS(&)A8VMW87)D
M(&)U="!O;FQY('5P=&\@9FER<W0 at 8V]L=6UN#0HC(" @(%PP,S-;/$Y533Y!
M(" @;6]V92 \3E5-/B!R;W=S('5P#0HC(" @(%PP,S-;/$Y533Y"(" @;6]V
M92 \3E5-/B!R;W=S(&1O=VX-"B,@(" @7# S,ULQ;2 @(" @("!S=VET8V@@
M;VX at 8F]L9 T*(R @("!<,#,S6S,Q;2 @(" @('-W:71C:"!O;B!R960-"B,@
M(" @7# S,ULS,FT@(" @("!S=VET8V@@;VX at 9W)E96X-"B,@(" @7# S,ULS
M,VT@(" @("!S=VET8V@@;VX@>65L;&]W#0HC(" @(%PP,S-;;2 @(" @(" @
M<W=I=&-H(&]F9B!C;VQO<B]B;VQD#0HC(" @(%PP,3<@(" @(" @(" @97AI
M="!A;'1E<FYA=&4@;6]D92 H>'1E<FTL('9T,3 P+"!L:6YU>"!C;VYS;VQE
M*0T*(R @("!<,#,S6S$P;2 @(" @(&5X:70 at 86QT97)N871E(&UO9&4@*&QI
M;G5X(&-O;G-O;&4I#0HC(" @(%PP,34@(" @(" @(" @8V%R<FEA9V4@<F5T
M=7)N("AW:71H;W5T(&YE=VQI;F4I#0HC#0H-"FEF('1E<W0 at +7H@(B1,24Y%
M4R(@+6\@+7H@(B1#3TQ534Y3(B [('1H96X-"B @("!E=F%L(&!S='1Y('-I
M>F4@,CXO9&5V+VYU;&P@?" H<F5A9"!,($,[(%P-"@D@(&5C:&\@3$E.15,]
M)'M,.BTR-'T at 0T],54U.4STD>T,Z+3 at P?2E@#0IF:0T*=&5S=" D3$E.15,@
M(" M97$@," F)B!,24Y%4STR- T*=&5S=" D0T],54U.4R M97$@," F)B!#
M3TQ534Y3/3 at P#0H-"FEF('1E<W0 at +70@,2 M82 B)%1%4DTB("$](")R87<B
M("UA("(D5$5232(@(3T@(F1U;6(B("8F('-T='D@<VEZ92 ^("]D978O;G5L
M;" R/B8Q(#L@=&AE;@T*#0H@(" @(" @("!04S$](AM;,S<[,6U;&ULS-#LQ
M;4P;6S,V;6D;6S,R;6X;6S,S;74;6S,Q;7@;6S,W.S%M71M;.S!M("(-"@T*
M(" @(" @(" @97-C/6!E8VAO("UN92 B7# S,R)@#0H@(" @(" @('-T870]
M8&5C:&\@+65N(")<,#$U)'ME<V-]6R1[0T],54U.4WU#)'ME<V-]6S$P1")@
M( T*(" @(" @("!N;W)M/6!E8VAO("UE;B B)'ME<V-]6VU<,#$W(F -"@T*
M(" @(" @("!B;VQD/2(D97-C6S%M(@T*#0H@(" @(" @8FQA8VL](B1E<V-;
M,S!M(@T*(" @(" @(" @<F5D/2(D97-C6S,Q;2(-"B @(" @("!G<F5E;CTB
M)&5S8ULS,FTB#0H@(" @("!Y96QL;W<](B1E<V-;,S-M(@T*(" @(" @("!B
M;'5E/2(D97-C6S,T;2(-"B @(" @;6%G96YT83TB)&5S8ULS-6TB#0H@(" @
M(" @(&-Y86X](B1E<V-;,S9M(@T*(" @(" @('=H:71E/2(D97-C6S,W;2(-
M"@T*(" @("!B9V)L86-K/2(D97-C6S0P;2(-"B @(" @("!B9W)E9#TB)&5S
M8ULT,6TB#0H@(" @(&)G9W)E96X](B1E<V-;-#)M(@T*(" @(&)G>65L;&]W
M/2(D97-C6S0S;2(-"B @(" @(&)G8FQU93TB)&5S8ULT-&TB#0H@("!B9VUA
M9V5N=&$](B1E<V-;-#5M(@T*(" @(" @8F=C>6%N/2(D97-C6S0V;2(-"B @
M(" @8F=W:&ET93TB)&5S8ULT-VTB#0H-"B @(" @<F-?9&]N93TB)'MS=&%T
M?21[8F]L9'TD>V=R965N?61O;F4D>VYO<FU](@T*(" @<F-?9F%I;&5D/2(D
M>W-T871])'MB;VQD?21[<F5D?69A:6QE9"1[;F]R;7TB#0H@("!R8U]U;G5S
M960](B1[<W1A='TD>V)O;&1])'MY96QL;W=]=6YU<V5D)'MN;W)M?2(-"F5L
M<V4-"B @(" @(" @(%!3,3TB6TQI;G5X72(-"B @(" @<F-?9&]N93TB+BYD
M;VYE(@T*(" @<F-?9F%I;&5D/2(N+F9A:6QE9"(-"B @(')C7W5N=7-E9#TB
M+BYU;G5S960B#0IF:0T*#0IE>'!O<G0 at 4%,Q($Q)3D53($-/3%5-3E,@<F-?
;9&]N92!R8U]F86EL960-"@T*(R-?14]&7R,C
`
end




More information about the busybox mailing list