diff --git a/docs/changelog.rst b/docs/changelog.rst index ee29f6e81..b20ec57f1 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -54,6 +54,8 @@ Detailed list of changes - ``kitten @ set-background-opacity`` - add a new ``--toggle`` flag to easily switch opacity between the specified value and the default (:iss:`6691`) +- Fix a regression caused by rewrite of kittens to Go that made various kittens reset colors in a terminal when the colors were changed by escape code (:iss:`6708`) + 0.30.1 [2023-10-05] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/tools/tui/loop/terminal-state.go b/tools/tui/loop/terminal-state.go index 3cf065259..a7087a200 100644 --- a/tools/tui/loop/terminal-state.go +++ b/tools/tui/loop/terminal-state.go @@ -162,9 +162,9 @@ func (self *TerminalStateOptions) ResetStateEscapeCodes() string { } sb.WriteString(RESTORE_PRIVATE_MODE_VALUES) if self.restore_colors { - sb.WriteString(RESTORE_CURSOR) + sb.WriteString(RESTORE_COLORS) } - sb.WriteString(RESTORE_COLORS) + sb.WriteString(RESTORE_CURSOR) return sb.String() }