Raspberry Pi Zero 2 W Prints Terminal Commands on Receipt Printer
official raspberry pi The operating system, Raspberry Pi OS, is Linux-based. So it’s not uncommon to find yourself running terminal commands. This project was created by the maker and developer Arseny. I posted the details on Reddit under the name kotofey_magnusintroduces a new way to record terminal interactions by printing to a thermal receipt printer in real time.
When a user types a command into the terminal, it prints the command. As soon as the Pi processes the input, the response is printed to the printer. This creates a physical trail of her GUI and a literal paper trail by logging terminal interactions on the printer.
I reached out to Arseny and explained that this was his first Raspberry Pi and then his first Pi-based project. Developed as a joke, it ended up being a very clever concept and I couldn’t help but appreciate it.
It doesn’t take long to power a project powered by a Raspberry Pi Zero 2W. For this project we will use a generic USB receipt printer, but any thermal receipt printer that can be driven by the Pi will suffice.
The code is very simple and works primarily by redirecting terminal commands and output to a USB receipt printer instead of a terminal window. This allows for his GUI printed in real time to create the paper interface seen in the demonstration video. Youtube.
If you want to recreate this Raspberry Pi project, check out the original thread shared. reddit Break down the code used to run the application. You’ll also find additional comments from other users suggesting shorter ways to implement the same idea. In the meantime, follow Arseny for more cool projects and future Pi creations.