The official Raspberry Pi working system, Raspberry Pi OS, is Linux-based. Which means it’s not too unusual to search out your self operating terminal instructions. This challenge, created by maker and developer Arseny, who posted the small print below the title kotofey_magnus on Reddit, showcases a brand new solution to log terminal interactions by printing them on a thermal receipt printer in real-time.
When customers kind a command into terminal, it prints out the command. When the Pi processes the enter, the response is then printed on the printer proper after. This creates a bodily GUI and literal paper path by logging the terminal interactions on the printer.
We reached out to Arseny who defined that this was his first Raspberry Pi and subsequently his first Pi-based challenge. It was developed as a joke however the finish result’s a extremely intelligent idea that we couldn’t assist however admire.
It doesn’t take a lot to energy the challenge, which is pushed by a Raspberry Pi Zero 2 W. That mentioned, any Raspberry Pi able to operating terminal ought to work for this challenge. This challenge makes use of a generic USB receipt printer, however any thermal receipt printer able to being pushed by the Pi would suffice in its stead.
The code is easy sufficient, it really works primarily by redirecting the terminal instructions and output to the USB receipt printer as a substitute of the terminal window. This permits for a real-time printed GUI, creating the paper interface seen within the demonstration video over at YouTube.
If you wish to recreate this Raspberry Pi challenge, take a look at the unique thread shared to Reddit the place he breaks down the code he used to run the applying. You’ll additionally discover further feedback from different customers that suggest shorter strategies for implementing the identical thought. Within the meantime, make sure to observe Arseny for extra cool initiatives and future Pi creations.