3 ms·
The principle is the problem. When your program is a TUI, it means stdout is useless. The tweet I quoted illustrates this problem. If you do both printf debugg
by hsn915 5y ago
The principle is the problem.
When your program is a TUI, it means stdout is useless. The tweet I quoted illustrates this problem. If you do both printf debugging and use a TUI debugger, you will not be able to see the output from the printf statements.
You want to draw a GUI but you're using a text stream to issue commands to the terminal to draw text and color regions of the screen - while at the same time hiding the std output buffer (and losing the ability to select and copy/paste the text being drawn).
As if drawing text and colored boxes is so fundamentally difficult it can't be done any other way.
As if handling shortcuts in a GUI program is so fundamentally difficult that it's easier to do it in a TUI.