Re: Centering text on the 80 column display

From: George (greerga@CIRCLEMUD.ORG)
Date: 03/26/98


On Thu, 26 Mar 1998, Chris Hyde wrote:

>        I am trying to write a function that will center a string of text
>in an 80 column display.  I was wondering if anyone else has attempted
>something such as this, and if so, wondered if you could give me some help
>in getting mine to work.  I have checked the CircleMUD ftp site and

You forgot to check the 'autowiz' code.

>numerous snippets and resource pages, but have found nothing like what I
>am looking for.  Also, I couldnt find anything in the existing code that
>does what I want.  If you happen to know of a location where I can find

In QuickBASIC I used to do:

LOCATE <line>,40-len(string)/2
PRINT string

It's a little different in C. :)

--
George Greer  -  Me@Null.net   | Genius may have its limitations, but stupidity
http://www.van.ml.org/~greerga | is not thus handicapped. -- Elbert Hubbard


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/15/00 PST