Subj : console.putmsg alternative that returns a string
To : Nightfox
From : Psi-Jack
Date : Wed Oct 01 2014 09:32 am
Re: console.putmsg alternative that returns a string
By: Nightfox to All on Tue Sep 30 2014 12:39 pm
Ni> Is there an alternative to console.putmsg() that returns a string instead
Ni> of outputting to the console? What I'd like to do is to have @-codes,
Ni> etc. interpreted in a string and save that string so I can then pass that
Ni> string to printf() so I can specify a field length for the text.
I believe what you're looking for is bbs.atcode():
text = text.replace(/@([^@]+)@/g, function(m, code) {
return bbs.atcode(code);
});