A line break?

there's a carriage return, and a line feed: "\n\r"

Unless you mean you want this paged.

In which case, your best bet is to look at a function that does it.

More or less:

char buf[MSL];
BUFFER_DATA *buffer;
buffer = new_buffer();

then, change all your send_to_char()'s, printf_to_char()'s or sprintf's in
this function to start:
sprintf(buf, /* the rest of it*/);
add_buf(buffer, buf);

At the bottom:
page_to_char(bug_string(buffer), ch);
free_buf(buffer);

Examples in stock ROM that use this that you can refer to:

do_spell
do_skill

Should help you out.

>-----Original Message-----
>From: Nicholas Hutzell [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, May 28, 2002 8:23 PM
>To: ROM
>Subject: line break
>
>
>Im trying to get a line break into my do_practice
>function but everything i try fails. Anyone have any
>ideas?
>
>i.e. like this
>
>
> downdraft              100%   smog                  
>100%   enlightenment          100%  
> vitality               100%   brain bulge           
>100%   confusion              100%  
> general purpose        100%   high explosive        
>100%  
>
>[Hit return to continue]
>
>  =-=-=- Skills -=-=-= 
> axe                    100%   dagger                
>100%   flail                  100%  
> mace                   100%   polearm               
>100%   shield block           100%  
> spear                  100%   sword                 
>100%   whip                   100%  
>
>
>
>
>
>
>
>
>__________________________________________________
>Do You Yahoo!?
>Yahoo! - Official partner of 2002 FIFA World Cup
>http://fifaworldcup.yahoo.com
>
>-- 
>ROM mailing list
>[email protected]
>http://www.rom.org/cgi-bin/mailman/listinfo/rom
>

  • line break Nicholas Hutzell
    • RE: line break Jason Gauthier

Reply via email to