Subj : fried brain To : MCMLXXIX From : Deuce Date : Mon May 12 2008 06:44 pm Re: fried brain By: MCMLXXIX to Deuce on Mon May 12 2008 06:10 pm > > console.putmsg(word_wrap(string, 10).replace(/\n/,"\n ")); > > > that would work, sort of... but the idea is to make the text wrap within a > window at either a menu, or in the midst of another script, so having > preceeding spaces would mess up the surrounding graphics. the distance from > the left will also be supplied as a variable and will change depending on > what's going on.. Ok... console.putmsg(word_wrap(string, 10).replace(/\n/,"\n\1"+ascii(127+10))); > you should make word_wrap take a starting_column argument! .... :) The word wrap function is in now way connected to output... so a starting_column argument is pointless. Regarding windows, they aren't supported natively. You could do this functionality using the graphic.js library though: load("graphic.js"); var window=new Graphic(10,24); window.putmsg(word_wrap(1,1,string, window.width)); window.draw(1, 10); --- Synchronet - Jump on the Web 0.2 bandwagon! --- þ Synchronet þ My Brand-New BBS (All the cool SysOps run STOCK!) .