TIP: Click on subject to list as thread! ANSI
echo: synchronet
to: Nightfox
from: Digital Man
date: 2022-07-23 15:11:00
subject: Re: Help, It`s my fault t

  Re: Re: Help, It's my fault this time
  By: Nightfox to DesotoFireflite on Fri Jul 22 2022 01:46 pm

 >   Re: Re: Help, It's my fault this time
 >   By: DesotoFireflite to Nightfox on Fri Jul 22 2022 02:15 pm
 >
 >  Ni>> I started getting into the habit of using \x01 in any strings
 >  Ni>> rather than using literal Ctrl-A codes. That can help prevent
 >  Ni>> editors from changing those characters.
 >
 >  De> Yes, I'm starting to do that too, but some of the older ones I've done,
 >  De> still have the leteral code, and I don't see it till I edit it, then I
 >  De> have to go back and change it :)
 >
 > Why not do a search & replace in your editor?
 > One caveat that I've found though is that if you're using background codes
 > (which are numeric), I ended up splitting the string; otherwise it would
 > interpret the nex number wrong.
 >
 > For instance, if you want to output a blue background (Ctrl-A + 4), then I'd
 > do this in JavaScript:
 >
 > "\x01" + "4";
 >
 > Otherwise, if you have "\x014", then that would be interpreted as hex number
 > 14, which would be interpreted as a different character.

That's true for "\x14" (hex 14), but not for "\x014" (hex 01, followed by a '4'). "\x014" works fine, you don't need to split string or any other tricks.
-- 
                                            digital man (rob)

This Is Spinal Tap quote #44:
It really, it does disturb me, but i'll rise above it; I'm a professional.
Norco, CA WX: 87.6øF, 48.0% humidity, 11 mph SSE wind, 0.00 inches rain/24hrs
--- SBBSecho 3.15-Linux
                                                    
* Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)

SOURCE: echomail via QWK@pharcyde.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.