From 6c225468a6c96d701fc68e7d38ef06f98677b704 Mon Sep 17 00:00:00 2001 From: Joana Hrotko Date: Tue, 12 Mar 2024 13:02:12 +0000 Subject: [PATCH] cleanup Signed-off-by: Joana Hrotko --- cmd/formatter/logs.go | 18 ------------------ cmd/formatter/shortcut.go | 2 -- 2 files changed, 20 deletions(-) diff --git a/cmd/formatter/logs.go b/cmd/formatter/logs.go index 435d28832d6..52256026aa3 100644 --- a/cmd/formatter/logs.go +++ b/cmd/formatter/logs.go @@ -108,15 +108,6 @@ func (l *logConsumer) write(w io.Writer, container, message string) { if l.ctx.Err() != nil { return } - // height := goterm.Height() - - // fmt.Print("\0337") - // // Move to last line - // fmt.Printf("\033[%d;0H", height) - // // clear line - // fmt.Print("\033[0K") - // // restore cursor position - // fmt.Print("\0338") KeyboardInfo.PrintKeyboardInfo(func() { p := l.getPresenter(container) timestamp := time.Now().Format(jsonmessage.RFC3339NanoFixed) @@ -128,15 +119,6 @@ func (l *logConsumer) write(w io.Writer, container, message string) { } } }) - - // // save cursor position - // fmt.Print("\0337") - // // Move to last line - // fmt.Printf("\033[%d;0H", height) - // // clear line - // fmt.Print("\033[K" + navColor(" >> [CTRL+G] open project in Docker Desktop [$] get more features")) - // // restore cursor position - // fmt.Print("\0338") } func (l *logConsumer) Status(container, msg string) { diff --git a/cmd/formatter/shortcut.go b/cmd/formatter/shortcut.go index 6bc70d094bc..d6ab7b7fbb4 100644 --- a/cmd/formatter/shortcut.go +++ b/cmd/formatter/shortcut.go @@ -7,8 +7,6 @@ import ( ) type LogKeyboard struct { - // mutex sync.Mutex - // message string err error started bool }