mirror of
https://github.com/jesseduffield/lazydocker.git
synced 2026-07-21 23:01:03 +00:00
drop any color changes before attaching to container
This commit is contained in:
parent
ec5f96a1eb
commit
87ddc04634
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
}()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue