Subj : fried brain
To : Deuce
From : MCMLXXIX
Date : Mon May 12 2008 06:10 pm
Re: fried brain
By: Deuce to MCMLXXIX on Mon May 12 2008 15:01:10
> Re: fried brain
> By: MCMLXXIX to Deuce on Mon May 12 2008 04:30 pm
>
> > string="kljhsadflkhasfdjkhasdflhsadlfjhsadfjhsdlfhaslfdhsadflsdaflhasdfl
> > "; console.gotoxy(10,1); //move to the first row, 10 spaces from the left
> > edge
> >
> > console.putmsg(word_wrap(string,10));
>
> Ah...
>
> 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..
you should make word_wrap take a starting_column argument! .... :)