On Thursday 12 June 2008 22:59, James Simmons wrote:
> 
> > > Hi!
> > > 
> > >    I'm attempting color text but I'm getting "K[37;1mTextK[31;1m". Any 
> > > idea what is wrong?
> > 
> > What do you do to get it?
> 
> echo "IP address <$ip>"

Well, I meant "give me means to reproduce your case" :)

# ip=foo; echo "IP address <$ip>"
IP address <foo>

This works, but it's not what you meant.

How do you stuff color codes into $ip?

> > > Also I'm looking to flush the tty. Currently I'm doing 
> > > 
> > > Do you know of a better way?
> > 
> > Don't know for sure, maybe this?
> > 
> > int tcflush(int fd, int queue_selector);
> 
> I was hoping some app in busybox did that in some way. Will search for 
> tools to do that.

If you can confirm that the above code works for you
as a tiny standalone executable, it can be added to busybox.
--
vda
_______________________________________________
busybox mailing list
[email protected]
http://busybox.net/cgi-bin/mailman/listinfo/busybox

Reply via email to