Re: Inform: bug in a box?


28 Nov 1995 05:55:10 GMT

In article 79@arnod.arnod.demon.co.uk, jools@arnod.demon.co.uk (Julian Arnold) writes:
>Julian Arnold (jools@arnod.demon.co.uk) wrote:
>> I think I may have come across a bug in the `box' command.
> #SWITCHES sv5x;
> [ Main; box "Hello"; Key(); box "@@92@@92@@92@@92@@92"; Key(); quit; ];
> [ Key k; print "[Press a key]^^"; @read_char 1 k; ];
> #END;
>
>Notice the second box is far too wide, taking each '\' to be four characters,
>presumably because of the `@@92' notation.
>

My guess is that Inform simple counts the number of characters in the string,
not taking into account that @@92 will shrink to one character.

The only workaround I can think of is to code the box yourself in assembly
language (using the code for boxes produced by Inform as a base).

Bjorn Gustavsson