aboutsummaryrefslogtreecommitdiff
path: root/tecterm.c
AgeCommit message (Collapse)AuthorFilesLines
2025-05-07DOS: detect ANSIPLUS driverv7.0Robin Haberkorn1-10/+32
Actually, we cannot (easily) detect NANSI.SYS, so we don't enable optimizations by default. You will have to `set TECO_TERM=nansi.sys` to enable optimizations. Of course you can also still set the TERMCAP variable.
2025-05-05terminfo: use the enter_ca_mode/exit_ca_mode capabilities to restore the ↵Robin Haberkorn1-0/+8
screen at exit termcap was already doing it. Perhaps termcap is meant to be the main Video TECO interface?
2025-05-05removed declaration of tgetstr()Robin Haberkorn1-4/+0
It's in termcap.h...
2025-05-05tecterm.c: avoid duplicate function declarationsRobin Haberkorn1-9/+2
2025-04-27DOS: clear screen on exitRobin Haberkorn1-1/+1
It would be better to restore the previous screen contents, but that's probably not trivial to implement.
2025-04-23DOS: revised builtin termcap definitions and enable NANSI.SYS extensions ↵Robin Haberkorn1-11/+38
dynamically * The clrtobot capability (cd) is only used after goto(1,1), so it's safe to clear the entire screen. * Consistently use ESC[0m to disable attributes. AFAIK, it's not possible to disable individual attributes only. * al, AL, dl, DL, ic and dc are actually available, but only under NANSI.SYS. We now detect recent versions of NANSI.SYS dynamically and enable these extensions, which will speed up screen scrolling. * Scrolling is now fixed under Dosbox. Obviously they don't support the NANSI.SYS extensions. * You can still define %TERMCAP% even on DOS to load a customized termcap definitions file.
2025-04-23DOS: implemented console size detectionRobin Haberkorn1-0/+35
This is done via 10h interrupts and special memory regions. The alternative would have been to use set the cursor to 9999,9999 and query the cursor position via ANSI escape sequences.
2025-04-23MS-DOS real-mode (8086) portRobin Haberkorn1-4/+41
It can be cross-compiled or compiled natively on 32-bit DOS with OpenWatcom C v1.9. Compiling on an 8086 might be possible later on - but we would have to add support for some ancient ANSI C compiler.
2011-07-15converted file header and some variable/macro docs to Doxygen formatRobin Haberkorn1-5/+7
* adapted Doxygen config file
2011-07-15revised function's code documentation: every comment has been autoconverted ↵Robin Haberkorn1-138/+126
to Doxygen format and cleaned up manually
2007-12-26Fixed a bunch of the prototypes to allow compilation with the C++ compiler.v6.4paulcantrell1-27/+13
2007-12-10Original checkin with the GPL license.paulcantrell1-16/+17
2007-12-10Initial revisionpaulcantrell1-0/+1579