Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

[Index] [Glossary] [Previous] [Next]



The Glass Teletype application

One of the classic serial communications applications is the so-called glass teletype, whose heart is an algorithm structured round a tight loop. Programs of this type are commonly used as the basis of terminal emulators, but they don’t make efficient use of either modern communication hardware or modern operating systems. There are two main reasons why this is so.

Because of these considerations, the API doesn’t provide the primitive facilities suitable for writing terminal emulators which implement the algorithm. Instead, a more complex but richer range of features is made available. Taken together, they make it easy to write serial communications routines which can perform well at high speeds and can also guarantee optimum performance in a multitasking environment. In particular, the two problems mentioned above are avoided as follows:

As well as the issues just addressed, there are a number of other features that need to be understood before beginning to use the serial communications API.

Example code for a working glass teletype running inside the text shell can be found in the GlassTerm example, which shows how to handle all the concerns addressed so far, and is the source for the code extracts found here.


See also

Asynchronous Services