TIP: Click on subject to list as thread! ANSI
echo: synchronet
to: Nightfox
from: DesotoFireflite
date: 2022-07-22 19:14: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

 Ni> Re: Re: Help, It's my fault this time
 Ni> 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
 De>> done, still have the leteral code, and I don't see it till I edit
 De>> it, then I have to go back and change it :) 

 Ni> Why not do a search & replace in your editor?
 Ni> One caveat that I've found though is that if you're using background codes
 Ni> (which are numeric), I ended up splitting the string; otherwise it would
 Ni> interpret the nex number wrong.

 Ni> For instance, if you want to output a blue background (Ctrl-A + 4), then
 Ni> I'd do this in JavaScript:

 Ni> "\x01" + "4";

 Ni> Otherwise, if you have "\x014", then that would be interpreted as hex
 Ni> number 14, which would be interpreted as a different character.

I might check that out this weekend, after I rebuild the brakes on the car. It 
Thanks for the idea. Sometimes I have so much going on, that I forget the simple stuff like search and replace. 

SysOp: C.G. Learn, AKA: DesotoFireflite
Valhalla Home Services! - (Synchronet) - bbs.valhallabbs.com:23
A Gamers Paradise - Over 250 Registered Online Game Doors!

--- Don't eat the yellow snow!
 þ Synchronet þ Valhalla Home Services þ USA þ http://valhalla.synchro.net
                     
* 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™.