Language Selection

English French German Italian Portuguese Spanish

the futility of termcap in Linux

Filed under
Linux

Let's stop a moment and examine the futility of termcap in Linux.
Back in the 1970's Unix systems used to output to various hardware devices. First there were teletypes (most often the ASR-33, because they could be bought cheaply secondhand and refurbished by hobbyists). Teletypes were printers with keyboards attached, hooked up to a serial cable. Everything sent to the serial cable was printed with ink on paper, and the keys pressed by the user were sent the other way along the serial cable for the computer too read.

Note: we're not even talking dot-matrix printers here, the ink ribbon was generally struck by a daisy wheel or similar, so there was no possibility of bitmapped graphics. The characters were struck by good old metal type, dating back to Gutenberg.

This is what "tty" is an abbreviation for: teletype. The Unix console infrastructure still thinks in terms of serial ports connected to printers with keyboards attached. Newline and linefeed being separate characters, waiting until a full line of text is typed before processing it, inability to programmatically read back what was written. Even the ctrl-G "bell" character rang an actual metal BELL. These machines not only needed their ink ribons replaced, they needed to be periodically cleaned, oiled, and various pieces tightened and straightened because they rattled apart. It was almost steampunk.

Then in the 1970's "glass tty" devices were introduced, which connected the serial cable to a box with a CRT and keyboard, instead of printer and keyboard. This new style of terminal was a drop-in replacement for teletypes.

rest here




More in Tux Machines

Deepin 2014.1 Released With Bug Fixes And Minor Enhancements

Deepin 2014.1 was released today with numerous bug fixes meant to improve the system stability and performance as well as a few interesting enhancements / new features. Users who have already installed Deepin 2014 don't have to reinstall - a simple upgrade via the Deepin Store or command line (sudo apt-get dist-upgrade) is enough to get the latest Deepin 2014.1. Read more

Quod Libet 3.2.1 Review – An Almost Perfect Music Player

It's a mystery why Quod Libet is not a more popular media player. It's been around for years and the developers have constantly worked on it. The last major update was done back in May 2014, and the software is stable and full of goodies. Quodlibet is a Latin phrase that means "what pleases" and it's used in music to describe a piece that's a combination of multiple melodies. The name seems to relate very well to the media player and it's actually quite catchy. Read more

Making Fedora work better [For me]

I’ve been talking to my fellow Fedora user, James [who happens to be my boss] and he’s told me a few extensions that are available for gnome 3 that make things a little better, and to be honest I like them lots. First of all you need to go here – https://extensions.gnome.org/ [use firefox] The first couple I have install is Applications Menu No Topleft Hot Corner Read more

Canonical Has Yet To Land X.Org Server 1.16 For Ubuntu 14.10

The Canonical X PPA offers the "X staging" packages with the new package versions providing the support. Besides the upgraded xserver package there's also version bumps to xserver-xorg-input-evdev, xserver-xorg-video-ati, xserver-xorg-video-intel, and xserver-xorg-video-nouveau that are built against the X.Org Server 1.16 ABI. Those wishing to upgrade to the X.Org Server 1.16 code can run sudo apt-add-repository ppa:canonical-x/x-staging; sudo apt-get update; sudo apt-get dist-upgrade for trying out these packages on Ubuntu 14.10 Utopic. Canonical sadly hasn't done any updates to these packages since the end of July per the Launchpad package details. Read more