summaryrefslogtreecommitdiffstats
path: root/src/history.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2021-11-13 16:44:07 -0500
committerJesse Luehrs <doy@tozt.net>2021-11-13 16:44:07 -0500
commit72677dc11f65207ff0a89a9b10a50d1176d53aa6 (patch)
tree09a8f5ffbfd0ac5b245258efe155ce18e7242994 /src/history.rs
parent689e337b5a1baff0e9fe4b65e0f26601601f0ddd (diff)
downloadnbsh-72677dc11f65207ff0a89a9b10a50d1176d53aa6.tar.gz
nbsh-72677dc11f65207ff0a89a9b10a50d1176d53aa6.zip
reset attributes after drawing a full screen app
otherwise we could retain drawing attributes when returning from full screen
Diffstat (limited to 'src/history.rs')
-rw-r--r--src/history.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/history.rs b/src/history.rs
index f886d13..a562d6d 100644
--- a/src/history.rs
+++ b/src/history.rs
@@ -330,6 +330,8 @@ impl HistoryEntry {
out.write(b"\x1bg");
self.visual_bell_state = new_visual_bell_state;
}
+
+ out.reset_attributes();
}
}