Interacting with the user: Introduction and Requirements

Introduction

Now that we have advanced into the PureBasic language and have covered some of the language elements required to make some interesting programs, it will be useful to examine simple interaction with the users of your programs. This will be done using text displays (consoles) to keep things simple while the fundamentals of PureBasic are still being taught.

This will involve commands you have seen in the examples and have (hopefully) been using in the exercises, but they will be described in more detail. New commands from the same set will also be demonstrated so that you are able to display text in a variety of ways and styles, read input from the user and change the appearance of the display.

Requirements

The requirements for this chapter are that you have installed PureBasic and it is working correctly. You should be familiar with the fundamentals of the PureBasic language (especially commands), variables and program flow.