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. 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 https://github.com/jacobwilliams/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.