Re: console.strlen(text) vs. strip_ctrl(text).length
By: Digital Man to Nightfox on Mon Jan 05 2015 17:01:28
>> Makes sense. The ASCII values (in decimal) are 16, 17, 24, and 25.
DM> Yup, those are control character. You can't really rely on them being
DM> displayed as printable characters (aka 'glyphs') in the terminal. If you
DM> try different terminal programs, you'll likely see different/inconsistent
DM> results.
I see. I'll have to give that a try.
Nightfox
---
■ Synchronet ■ Digital Distortion BBS - digitaldistortionbbs.com
|