cd /news/developer-tools/fterm-a-terminal-emulator-library-fo… · home › topics › developer-tools › article
[ARTICLE · art-178411] src=fortran-lang.discourse.group ↗ pub= topic=developer-tools verified=true sentiment=· neutral

Fterm: A terminal emulator library for qt-fortran

A developer has released Fterm, a terminal emulator library and widget for qt-fortran that lets Fortran GUI applications embed a terminal, written in pure Fortran plus three lines of C. The author said the project was mostly AI-written and that after back-and-forth with the model, nearly all the generated C code could be rewritten in Fortran, leaving only two variadic functions (ioctl and fcntl) and the errno macro, none of which work with ISO C Binding.

key takeaway

A terminal emulator for qt-fortran can be built in pure Fortran except for ioctl, fcntl and the errno macro, which cannot be used with ISO C Binding because they are variadic or macro-based.

read1 min views7 publishedNov 30, 2026

Because if we are writing GUIs in Fortran, they need terminals, right?

This library is a pure-Fortran (OK, plus three lines of C code) terminal emulator and widget for qt-fortran, allowing you to include a terminal in your Fortran GUI application.

Mostly AI-written. Interestingly, I initially told it to use as little C as possible. But it ended up writing a lot of C code. After some back and forth, it turns out that almost all of it can, in fact, be written in Fortran. What is left are two variadic functions (ioctl and fcntl) and one macro errno, neither of which can be used with ISO C Binding.

── more in #developer-tools 4 stories · sorted by recency
── more on @fterm 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/fterm-a-terminal-emu…] indexed:0 read:1min 2026-11-30 · —