mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-01 11:32:48 -05:00
Initial work on a terminal test program.
This has all the basic necessities to become a test of the terminal's behaviour, in terms of how its data structures evolve as output is sent to it, and perhaps also (by filling in the stub TermWin more usefully) testing what it draws during updates and what it sends in response to query sequences. For the moment, all I've done is to set up the framework, and add one demo test of printing some ordinary text and observing that it appears in the data structures and the cursor has moved. I expect that writing a full test of terminal.c will be a very big job. But perhaps I or someone else will find time to prod it gradually in the background of other work. In particular, when I'm _modifying_ any part of the terminal code, it would be good to add some tests for the part I'm changing, before making the change, and check they still work afterwards.
This commit is contained in:
@ -1,9 +1,6 @@
|
||||
/*
|
||||
* Internals of the Terminal structure, for those other modules
|
||||
* which need to look inside it. It would be nice if this could be
|
||||
* folded back into terminal.c in future, with an abstraction layer
|
||||
* to handle everything that other modules need to know about it;
|
||||
* but for the moment, this will do.
|
||||
* Internals of the Terminal structure, used by other modules in the
|
||||
* terminal subdirectory and by test suites.
|
||||
*/
|
||||
|
||||
#ifndef PUTTY_TERMINAL_H
|
||||
|
Reference in New Issue
Block a user