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

Alex Tweedly alex at tweedly.net
Wed May 31 06:43:43 EDT 2006


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.

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

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



-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.7.3/350 - Release Date: 28/05/2006




More information about the use-livecode mailing list