Random scan display emulator.
Also user input devices like keyboard, keyset, light pen, Spacewar console, mouse, etc.
There are implementations in C + SDL2, and JavaScript.