mirror of
https://github.com/jesseduffield/lazydocker.git
synced 2026-08-24 10:13:39 -05:00
drop any color changes before attaching to container
This commit is contained in:
@@ -399,7 +399,8 @@ func (c *Container) Attach() error {
|
||||
output := os.Stdout
|
||||
clearScreen := "\033[2J"
|
||||
showCursor := "\033[?25h"
|
||||
_, _ = io.Copy(output, strings.NewReader(clearScreen+showCursor))
|
||||
noColor := "\033[0m"
|
||||
_, _ = io.Copy(output, strings.NewReader(clearScreen+showCursor+noColor))
|
||||
_, _ = io.Copy(output, hijack.Conn)
|
||||
channel <- syscall.SIGINT
|
||||
}()
|
||||
|
||||
Reference in New Issue
Block a user