Subj : Re: Read with word-wrap To : Dmxrob From : Mortifis Date : Wed Feb 13 2019 04:53 pm > I want to read in a text string up to 160 characters. Using > console.getstr(maxlen=160) it is stopping at the 80th position (for a 80x25 > screen). Ideally what I'd like to happen is when it hits that border it > would just wrap text. I've seen this behaviour before on SBBS, but before I > wrote some javascript to try and do it myself I wanted to see if there was a > built-in method I'm just not seeing. > Thanks, > Rob Not sure if this will help, but in the web/msgs/reply.ssjs there is a block: template.body=msgbase.get_msg_body(false,parseInt(http_request.query.reply_to), true); if(this.word_wrap != undefined) { // quote_msg adds three chars to each line. Re-wrap to 76 chars... // with the extra three, we're still under 80 *. template.body=quote_msg(word_wrap(template.body,76),79); } else { template.body=template.body.replace(/^(.)/mg,"> $1"); } might get you started on a solution --- þ Synchronet þ AlleyCat! BBS - http://alleycat.synchro.net:81 .