ncurses terminfo parameter expansion can simulate 2-counter Minsky machines.

Host a parasite Fibonacci program in your terminal, clocked by /usr/bin/top.

2nd October 2026

Back in 2019, Gwen Weinholt (weinholt.se) noticed that Terminfo featured a stack machine with parameters, arithmetic and logic, if-then-else, output, and persistent variables. Gwen noted that terminfo was close to a Turing machine but lacked loops, which could be worked around by pushing the iteration outside the language.

More recently, Martin Tournoij implemented the Go termfo package and noted that "terminfo files are Turing-complete".

This article builds on these observations and makes the universality argument explicit with a reduction from two-counter Minsky machines.