mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-05 21:42:47 -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:
4
window.c
4
window.c
@ -1779,8 +1779,8 @@ static LRESULT CALLBACK WndProc(HWND hwnd, UINT message,
|
||||
cfgtopalette();
|
||||
init_palette();
|
||||
|
||||
/* Give terminal a heads-up on miscellaneous stuff */
|
||||
term_reconfig(term);
|
||||
/* Pass new config data to the terminal */
|
||||
term_reconfig(term, &cfg);
|
||||
|
||||
/* Screen size changed ? */
|
||||
if (cfg.height != prev_cfg.height ||
|
||||
|
Reference in New Issue
Block a user