Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Snomad

Pages: [1]
1
Pueblo/UE / Fixed-Width Fonts in HTML/Pueblo Format
« on: 19 August 2008, 13:20:39 »
Most MUSH code is formatted to suit the old VT100, etc. fonts, which are fixed-width. The [columns()] function specifically supports fixed-width  fonts, as do other functions. I've tried everything in the helpfiles to force fixed-width fonts while still evaluating HTML sent by the world for Pueblo interpretation. Here are my results:

CODE STRING:
@pemit me=[columns(Columns Columns Columns Columns Columns Columns Columns Columns Columns Columns,15)]

MODE OUTPUT
No mode change/raw

Columns Columns Columns Columns Columns
Columns Columns Columns Columns Columns

<img xch_mode=text>
Columns Columns Columns Columns Columns Columns Columns Columns Columns Columns

<img xch_mode=html>
Columns Columns Columns Columns Columns
Columns Columns Columns Columns Columns

<img xch_mode=purehtml>
Columns Columns Columns Columns Columns Columns Columns Columns Columns Columns

<xch_mudtext>
Columns        Columns        Columns        Columns        Columns        <br.>Columns        Columns        Columns        Columns        Columns        <br.>GAME: Database being saved.<br.>

(Note: I had to put the periods in or the BRs got evaluated as carriage returns and didn't show in the post.)

The last one got me my fixed-width font and the spaces didn't truncate or become smaller, so the columns function actually printed nicely, but at the expense of all HTML being evaluated. What can I do to have fixed-width be the default, with a forced call if I want any other kind of font, and then going back to fixed-width, as the standard in MUSH? I'll meddle with the hardcode if I have to, but I have no clue or idea how to do this. HELP! MUCK does it seamlessly without problem. Why can't MUSH?

P.S. I didn't fix my mode back but simply typed QUIT and got this:

<body.><br.><center.><hr width="80%".><font size=+2.><b.>The world 'Blue Rose' has disconnected.</b.><br.><br.><a href="pueblo:disconnect" xch_hint="Close the world log window and return to the world list" target="_self".>Return to the world list</a.><br.><br.><a href="pueblo:reconnect" xch_hint="Clear the world log window and reconnect to this world" target="_self".>Reconnect to this world</a.><br.></font.><hr width="80%%".></center.><br.>

Again, periods have been placed so the code won't evaluate and instead will print in the post. Should we be able to break the World List page like that so easily? I have to shut down and restart Pueblo to recover. There's no way to get the World List back.


~Jakk

Pages: [1]