Inform 7 Home Page / Documentation

§18.23. Constructing the status line

1. When it happens. Just before input is accepted from the keyboard, Inform constructs a "status line" at the top of the window which is normally displayed in reverse colours (white on black instead of black on white, say).

2. The default behaviour. Makes the status line up out of two pieces, the "left hand status line" and the "right hand status line". Since these can freely be changed, note that the status line is already very customisable without using rules applied to this activity.

3. Examples. (a) The most useful thing about this activity is that it allows us to vary descriptions in the status line. This is especially helpful to abbreviate unduly long room names, which might not otherwise fit:

The Temple Of A Thousand Mightily Peeved Deities is a room. Rule for printing the name of the Temple while constructing the status line: say "Temple".

(b) Again, it's usually not necessary to apply activity rules to this, but occasionally amusing effects are possible if we do:

paste.png The blindfold is wearable and carried. Rule for constructing the status line while the blindfold is worn: do nothing.

arrow-up.png Start of Chapter 18: Activities
arrow-left.png Back to §18.22. Printing the description of a dark room
arrow-right.png Onward to §18.24. Writing a paragraph about

*ExampleWays Out
A status line that lists the available exits from the current location.

**ExampleGuided Tour
A status line that lists the available exits from the current location, changing the names of these exits depending on whether the room has been visited or not.