Re: centering display

new topic     » goto parent     » topic index » view thread      » older message » newer message

Quick and Dirty:

-- add this at the end of std/console.e 
public sequence CS --Center text string  
public function CenterString(integer RM) 
--returns center string for the display routine, 
--given RM, the margin width 
return "[c:" & sprint(RM) & "]" 
end function 
----------------------------------------------------- 
-- test 
sequence text = "this is a test" 
CS = CenterString(25) 
display(CS,{text})  
new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu