#platform-info

built-in shelf

Purpose

A keyed, built-in shelf that provides information about the type of platforms supported by the current version of OmniMark.

The key is used to select the particular piece of information desired. Currently, the shelf has an item with the key "os-class". This item describes the type (or class) of operating system that the currently running OmniMark supports.

The possible values are:

  • "MS-DOS"
  • "UNIX"
  • "Windows"

Additional values will be added as the need arises. In older versions of OmniMark, "MVS" was also a possible value.

WARNING: Do not depend on the order of the items in this shelf. Always use the key when looking for a specific piece of information. For instance, code that assumes that a particular item is the last one on the shelf will likely break the next time that a new item is added (the next release). Similarly, code that assumes that a particular item is the first item on the shelf will likely break on the next release. Always use the key.

If you used this code:

  process
     output "Operating system (platform)info: " || #platform-info || "%n"

your output might look like the following: Operating system (platform)info: Windows

Related Syntax