Subj : Re: Help, It's my fault this time To : Nightfox From : Digital Man Date : Sat Jul 23 2022 15:11:37 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 --- þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net .