OT: Strange output of shell"man xyz" on OS X

Klaus Major klaus at major-k.de
Wed May 31 06:52:04 EDT 2006


Hi Alex,

> Klaus Major wrote:
>> Hi Bill,
>>> Underscore. The boxes are backspace characters.
>>
>> Aha, thanks :-)
>> Any hints on how to clean up this to display this nicely in a Rev  
>> field?
> You do it based on the backspaces (numtochar(8))s.
>
> Depends how nicely you need it.

VERY nice :-)

> Easy: put numtochar(8) into BS
> put replacetext(tData, "."+BS, tNewdata)

I get an "Operators + : error in left operand"?

> replaces any pair of chars containing a BS with nothing - so "_BS"  
> goes away, and "x_x" becomes simply "x"
>
> Harder:
> scan through it looking for BSs,
>     if previous character is an underscore, then the next char  
> should become underlined
>     if prev char and next char are the same, omit one of the  
> duplicates, and make the other bold
>
>
> -- 
> Alex Tweedly       http://www.tweedly.net

Regards

Klaus Major
klaus at major-k.de
http://www.major-k.de




More information about the use-livecode mailing list