aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
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-23updated Makefile.wcc: it assumes that $WATCOM has been set and the compilers ↵Robin Haberkorn1-7/+20
are in $PATH * has been tested both hosted on Linux and DOS with OpenWatcom v1.9. * more aggressively optimize for executable size
2025-04-23DOS: implemented console size detectionRobin Haberkorn3-1/+41
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-23DOS: Enter inserts LFRobin Haberkorn1-1/+1
Linefeeds are normalized to LF in the buffer.
2025-04-23MS-DOS real-mode (8086) portRobin Haberkorn8-33/+254
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.
2025-04-21properly initialize all allocated structuresRobin Haberkorn4-55/+9
* Fixes access to uninitialized field in cmd_token, as found via Valgrind. * Possibly other structures also aren't fully initialized, so I memset() them as well.
2025-04-21silence some warnings when compiling under FreeBSD (and probably Linux)Robin Haberkorn7-32/+32
Also avoid old-school function declarations without parameters (`void foo();`). This is unnecessarily loosing type safety.
2011-07-19extensive EC command documentation (doxygen)Robin Haberkorn1-1/+21
2011-07-18add some comments to EC command and clean up filedescriptors after fork()Robin Haberkorn1-14/+21
2011-07-18fixed colon-modifier and single-argument ranges for EC commandRobin Haberkorn2-3/+75
2011-07-18fixed EC command: care about DOT changeRobin Haberkorn1-18/+55
* undo token for DOT change, necessary if DOT was in EC argument range * use read/buff_insert loop to insert new text so we don't have to tweak DOT to be able to use buff_readfd and can do pipe-specific stuff
2011-07-18revised EC commandRobin Haberkorn4-99/+135
unidirectional pipe with no arguments. with one/two arguments, the buffer content is piped into the process and replaced with its output. * fixed error handling, now the child's exit status matters if everything else is OK, as well * colon modifier has standard behaviour of returning the command status
2011-07-18remove NULL macro definition: may be platform dependantRobin Haberkorn1-1/+0
2011-07-17compute BITS_PER_INT automatically based on BITS_PER_CHARRobin Haberkorn1-5/+6
this is possible since BITS_PER_INT is not used in any preprocessor expression
2011-07-17disable .OLD backup file creation by defaultRobin Haberkorn1-1/+3
* should be configurable using ./configure (disabled by default)
2011-07-17documented FT command (in Doxygen at least): the FT command performs various ↵Robin Haberkorn1-12/+59
etags/ctags functions
2011-07-15fixed pointer formatting on systems where sizeof(int) != sizeof(void*)Robin Haberkorn4-88/+51
this avoids most of the remaining compiler warnings
2011-07-15converted file header and some variable/macro docs to Doxygen formatRobin Haberkorn15-80/+107
* adapted Doxygen config file
2011-07-15reasonable Doxygen configurationRobin Haberkorn1-0/+1551
* optimized as a developer tool. doxygen for VideoTECO makes no sense for end users
2011-07-15revised function's code documentation: every comment has been autoconverted ↵Robin Haberkorn11-1057/+891
to Doxygen format and cleaned up manually
2011-07-11execute EC commands with /bin/shRobin Haberkorn1-14/+2
* makes special handling of Linux unnecessary * enables the (undocumented) :EC mode where the entire buffer content is written to the process (two pipes are created, both stdin and stdout/stderr are redirected) on Linux
2011-07-11avoid unused attribute warningRobin Haberkorn1-1/+1
2011-07-11avoid missing sentinel warning on GCCRobin Haberkorn1-1/+1
2011-07-11some errno and error_message() cleanupRobin Haberkorn2-8/+12
* errno was evaluated even though it was in an undefined state * error_message()s written by cmd_writebak() were overwritten by cmd_write()
2011-07-09fixed file backups for HAVE_LONG_FILE_NAMESRobin Haberkorn1-2/+2
* now files can be saved, but the current heuristics of creating a .OLD once and afterwards updating a .BAK might be nonsense * behaviour without HAVE_LONG_FILE_NAMES should work but does not make sense IMHO: will remove support for that case anyways
2011-01-03config.h is autogenerated, so it can be removed from the repositoryRobin Haberkorn1-225/+0
2011-01-03use CPPFLAGS and LDFLAGS, necessary (at least) for cross compilingRobin Haberkorn1-3/+3
* this is not optimal. but I plan to rewrite/clean up the buildsystem with autoconf and automake, so makefile.in will be replaced anyway
2007-12-26Fixed a bunch of the prototypes to allow compilation with the C++ compiler.v6.4paulcantrell10-429/+256
2007-12-26Remove an extra debug printf from the recent file hash codepaulcantrell1-4/+4
2007-12-11Minor addition to the README file.paulcantrell1-1/+4
2007-12-11Added a short README file.paulcantrell1-0/+224
2007-12-10Adding in the autoconfig filespaulcantrell1-0/+224
2007-12-10Original checkin with the GPL license.paulcantrell16-225/+7073
2007-12-10Initial revisionpaulcantrell17-0/+21858