Make 'reset terminal' also reset the blinking state of the cursor.
Fix from Thomas Dickey.
This commit is contained in:
parent
a7a745bbe2
commit
2c13a1681c
@ -8062,6 +8062,7 @@ VTInitialize(Widget wrequest,
|
||||
init_Bres(screen.cursor_blink_xor);
|
||||
init_Ires(screen.blink_on);
|
||||
init_Ires(screen.blink_off);
|
||||
screen->cursor_blink_i = screen->cursor_blink;
|
||||
#endif
|
||||
init_Bres(screen.cursor_underline);
|
||||
/* resources allow for underline or block, not (yet) bar */
|
||||
@ -11057,6 +11058,8 @@ ReallyReset(XtermWidget xw, Bool full, Bool saved)
|
||||
screen->cursor_set = ON;
|
||||
InitCursorShape(screen, screen);
|
||||
#if OPT_BLINK_CURS
|
||||
SetCursorBlink(screen, screen->cursor_blink_i);
|
||||
screen->cursor_blink_esc = 0;
|
||||
TRACE(("cursor_shape:%d blinks:%d\n",
|
||||
screen->cursor_shape,
|
||||
screen->cursor_blink));
|
||||
|
@ -2276,9 +2276,11 @@ typedef struct {
|
||||
XtCursorShape cursor_shape;
|
||||
#if OPT_BLINK_CURS
|
||||
BlinkOps cursor_blink; /* cursor blink enable */
|
||||
BlinkOps cursor_blink_i; /* save cursor blink enable */
|
||||
char * cursor_blink_s; /* ...resource cursorBlink */
|
||||
int cursor_blink_esc; /* cursor blink escape-state */
|
||||
Boolean cursor_blink_xor; /* how to merge menu/escapes */
|
||||
int cursor_blink_esc_i; /* cursor blink escape-state*/
|
||||
#endif
|
||||
#if OPT_BLINK_TEXT
|
||||
Boolean blink_as_bold; /* text blink disable */
|
||||
|
Loading…
Reference in New Issue
Block a user