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ã
Sysop: | Karloch |
---|---|
Location: | Madrid, Spain |
Users: | 78 |
Nodes: | 8 (0 / 8) |
Uptime: | 61:03:42 |
Calls: | 1,390 |
Calls today: | 1 |
Files: | 17,895 |
D/L today: |
8 files (174K bytes) |
Messages: | 66,273 |