DEV Community

petercour
petercour

Posted on

11 1

Writing a Terminal emulator (in Python)

Writing a terminal emulator is quite challenging. Modern terminal emulators have many features, like tabs or multiple windows, zooming and others.

But, there are much features that could be added to a terminal emulator. Like image viewing functionality, playing videos and much more.

For fun, I created my own terminal emulator. It is very basic in the sense it only gets and inputs command output.

At this point it fails to run some editors like nano, emacs. Which is because it only uses command output. To make that work I think it needs stdout/stdin instead.

Because using a QTextBrowser, it supports adding html into the terminal.

Its very experimental, but just for fun :)

Resources:

Do your career a big favor. Join DEV. (The website you're on right now)

It takes one minute, it's free, and is worth it for your career.

Get started

Community matters

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Dive into an ocean of knowledge with this thought-provoking post, revered deeply within the supportive DEV Community. Developers of all levels are welcome to join and enhance our collective intelligence.

Saying a simple "thank you" can brighten someone's day. Share your gratitude in the comments below!

On DEV, sharing ideas eases our path and fortifies our community connections. Found this helpful? Sending a quick thanks to the author can be profoundly valued.

Okay