You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
PDCursesMod/tests
Bill-Gray a96ed0fac6
The 'ripoff' test program now also tests PDC_set_function_key(). There wasn't previously a demo or test that exercised that function.
2 months ago
..
README.md Updated README.md for 'tests' to list five new test programs 8 months ago
brk_test.c Three new test program-lets, for focus events and the define_key() function; make sure Ctrl-C stops the program in noraw() mode and doesn't in raw() mode; and test out various possible issues with deleting windows if they still have undeleted subwindows. 8 months ago
del_test.c 'del_test.c' uses snprintf(), which doesn't exist for Digital Mars. However, _snprintf() does; a #define works around the problem. 4 months ago
focus.c 'focus.c' test program now cleans up memory appropriately. Modified the comment section to point out that the framebuffer and DRM ports could also support define_key() (I have no real plans for doing that on _any_ platform at present, though). 7 months ago
ins_del.c Some compilers object to 'int main( )' and insist that you provide argc and argv. 5 months ago
keytest.c 'keytest' wouldn't compile on ncurses or PDCurses, due to PDC_millisecs() being a PDCursesMod-only function. 8 months ago
naptest.c Added some small test programs 1 year ago
opaque.c 'opaque.c' : added compilation commands and set up to free all memory at exit (should register 'no allocations in use' when run under Valgrind) 8 months ago
restart.c 'restart' demo now allows an arbitrary number of restarts and shows what keys have been hit. I wanted to be sure that we didn't lose keyboard input after a restart (we don't, under either ncurses or PDCursesMod). 8 months ago
ripoff.c The 'ripoff' test program now also tests PDC_set_function_key(). There wasn't previously a demo or test that exercised that function. 2 months ago
show_col.c 'show_col' now will test insstr() in both wide-character and 8-bit builds. 4 months ago

README.md

Miscellaneous Small Test Programs

From time to time, small test programs for very specific bugs or features are written, sometimes in response to an issue raised on GitHub. They tend to be as minimal as possible, to avoid side issues. In almost all cases, they will be used briefly until the bug is fixed or feature tested, then ignored. However, they may be useful if further bugs/issues are found, or as examples of how the functions are used. Each is documented with comments at the top of the source file.

There are several that may eventually be added to this directory. As a start, we have :

  • brk_test.c - test to make sure that Ctrl-C stops the program in noraw() mode, and does not stop it in raw() mode.
  • del_test.c - test to explore some problems in deleting windows that have subwindows.
  • focus.c - example use of define_key(), and checking out ability to detect focus changes in the console.
  • ins_del.c- tests wscrl(), winsertln(), wdeleteln(), and winsdelln()
  • keytest.c - tests the speed of keyboard input on the various platforms. This arose from issue #197.
  • naptest.c - tests the napms() function on DOS and DOSVGA.
  • opaque.c - tests some relatively new functions to access SCREEN elements.
  • restart.c - tests the ability to shut Curses down completely, do "traditional" input/output, then restart Curses.
  • ripoff.c - tests the ripoffline() and SLK functions.