This site’s design is only visible in a graphical browser that supports web standards but its content is accessible to any browser or Internet device.

RedGrittyBrick

Programming

It would have been pretty tedious to code variations in each applications for each terminal: "order entry for vt52", "order entry for vt100", "order entry for Wyse 50" and so on.

So I guess, people wrote terminal handling libraries to insulate the actual application coding from whatever terminal was in use. The "curses" library must have arisen from this. Curses defines abstract functions for moving the cursor around. It translates these into the control codes that have to be sent to a specific type of terminal.

On Unix, the library finds out what sort of terminal from an environment variable "TERM" that is set in the login scripts.