mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-06-30 19:12:48 -05:00
term->cfg is now a full copy of the Config structure, not a pointer;
and term_reconfig() now passes in a new structure which is copied over the top. This means that the old and new structures can be compared, and the _current_ as well as default states of auto wrap mode, DEC origin mode, BCE, blinking text and character classes can be conveniently reconfigured in mid-session without requiring a terminal reset. [originally from svn r2557]
This commit is contained in:
@ -171,7 +171,14 @@ struct terminal_tag {
|
||||
|
||||
void *logctx;
|
||||
|
||||
Config *cfg;
|
||||
/*
|
||||
* We maintain a full _copy_ of a Config structure here, not
|
||||
* merely a pointer to it. That way, when we're passed a new
|
||||
* one for reconfiguration, we can check the differences and
|
||||
* adjust the _current_ setting of (e.g.) auto wrap mode rather
|
||||
* than only the default.
|
||||
*/
|
||||
Config cfg;
|
||||
};
|
||||
|
||||
#define in_utf(term) ((term)->utf || line_codepage==CP_UTF8)
|
||||
|
Reference in New Issue
Block a user