aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/stdio-commands.c
AgeCommit message (Collapse)AuthorFilesLines
2025-07-26support :=/:==/:=== commands: print number without trailing linefeedRobin Haberkorn1-19/+29
2025-07-26implemented the <^A> command for printing arbitrary stringsRobin Haberkorn1-4/+48
* Greatly improved usability as a scripting language. * The command is in DEC TECO, but in contrast to DEC TECO, we also support string building constructs in ^A. * Required some refactoring: As we want it to write everything verbatim to stdout, the per-interface method is now teco_interface_msg_literal() and it has to deal with unprintable characters. When displaying in the UI, we use teco_curses_format_str() and TecoGtkLabel functions/widgets to deal with possible control codes. * Numbers printed with `=` have to be written with a trailing linefeed, which would also be visible as a reverse "LF" in the UI. Not sure whether this is acceptable - the alternative would be to strip the strings before displaying them. * Messages written to stdout are also auto-flushed at the moment. In the future we might want to put flushing under control of the language. Perhaps :^A could inhibit the flushing.
2025-07-22refactored =/==/=== command into stdio-commands.cRobin Haberkorn1-0/+197
There will be a lot more commands for terminal/message input and output soon.