YOU ARE VIEWING DOCUMENTATION FOR ioL v.1. Click here for documentation for older v.0.9x versions of ioL.
ioL

Programming manual (doc.iol.science)



The <console> element

Note: the program element was renamed to the console element after v1.00.

The console element is a named tag instance that is created automatically at the beginning of an ioL console session.

It is the parent element of all other tags and data elements in the ioL environment, which all exist inside the console element's default field.

Note that invoking <console.clear> will clear the contents of the console.

The special console element defines several special fields that control various characteristics of the ioL console frame that displays your program's output, such as title bar text, program icon, window geometry and on-exit event handler.

Fields

The console element predefines the following fields automatically:

Note

You cannot change the geometry of the console window itself by modifying the width and height fields, as you can for other elements within your program. You can only manipulate geometry and placement of objects within the console window.

Unlike other markup elements, the width and height fields for the console element are read-only. They will return the current geometry of the console window, which will change if the user resizes the window (see also the onresize field).

Programs are not allowed to resize the ioL console window that they are hosted within. This is left to the user, or the framing managment policy of the wider operating environment. (The concept of allowing programs to override their user's desktop preferences and/or system policies is considered harmful design policy, since it would be open to potential abuse.)