From 94ba0e2539a695b1031c4735896de2371fcd576b Mon Sep 17 00:00:00 2001 From: Eduardo Silva Date: Tue, 7 Jul 2026 00:06:59 +0100 Subject: [PATCH] window title reporting --- README.md | 3 ++- main.go | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c52052a..4fc1330 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,8 @@ other drivers, track conditions and so on so forth ## Todos -- [ ] Make the program report what its doing as the window title `\x1b]0;TITLE\x7` +- [X] Make the program report what its doing as the window title `\x1b]0;TITLE\x07` + Quicker than I thought. Just have to maintain it - [ ] Add a way to check the unit of a given variable Expand on this concept by creating conversions for those units - [ ] Remove all the `slog.logger` passing and struct members and just configure diff --git a/main.go b/main.go index ceb9aeb..e69846f 100644 --- a/main.go +++ b/main.go @@ -16,6 +16,8 @@ import ( ) func initApplication() { + fmt.Fprint(os.Stdout, "\x1b]0;ESDI\x07") + // 1. This is the first initialization setup we do so we can log err := setupLogger() if err != nil {