File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -336,19 +336,20 @@ func (s *cScreen) disengage() {
336
336
if s .vten {
337
337
s .emitVtString (vtCursorStyles [CursorStyleDefault ])
338
338
s .emitVtString (vtEnableAm )
339
+ if ! s .disableAlt {
340
+ s .emitVtString (vtExitCA )
341
+ }
342
+ } else if ! s .disableAlt {
343
+ s .clearScreen (StyleDefault , s .vten )
339
344
}
340
345
s .setInMode (s .oimode )
341
346
s .setOutMode (s .oomode )
342
347
s .setBufferSize (int (s .oscreen .size .x ), int (s .oscreen .size .y ))
343
- s .clearScreen (StyleDefault , false )
344
348
s .setCursorPos (0 , 0 , false )
345
349
s .setCursorInfo (& s .ocursor )
346
350
_ , _ , _ = procSetConsoleTextAttribute .Call (
347
351
uintptr (s .out ),
348
352
uintptr (s .mapStyle (StyleDefault )))
349
- if s .vten && ! s .disableAlt {
350
- s .emitVtString (vtExitCA )
351
- }
352
353
}
353
354
354
355
func (s * cScreen ) engage () error {
You can’t perform that action at this time.
0 commit comments