A light pen is a computer input device in the form of a light-sensitive wand used in conjunction with a computer's CRT display.
It allows the user to point to displayed objects or draw on the screen in a similar way to a touchscreen but with greater positional accuracy. A light pen can work with any CRT-based display and other display technologies, but its ability to be used with LCDs was unclear (though Toshiba and Hitachi displayed a similar idea at the "Display 2006" show in Japan).
A light pen detects a change of brightness of nearby screen pixels when scanned by cathode ray tube electron beam and communicates the timing of this event to the computer. Since a CRT scans the entire screen one pixel at a time, the computer can keep track of the expected time of scanning various locations on screen by the beam and infer the pen's position from the latest timestamp.
The first light pen was created around 1955 as part of the Whirlwind project at MIT.
During the 1960s light pens were common on graphics terminals such as the IBM 2250, and were also available for the IBM 3270 text-only terminal.
Light pen usage was expanded in the early 1980s to personal computers such as the Fairlight CMI, and the BBC Micro. IBM PC compatible CGA, HGC and some EGA graphics cards also featured a connector for a light pen, as did the Thomson MO5 computer family, the Atari 8-bit and Commodore 8-bit home computers.