From 858575241603ae7932fb5d740e5651c10e04558b Mon Sep 17 00:00:00 2001 From: Joop Kiefte Date: Thu, 28 Sep 2023 01:57:30 +0100 Subject: Polishing --- main.go | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/main.go b/main.go index af84d0d..786c106 100644 --- a/main.go +++ b/main.go @@ -77,9 +77,11 @@ Running debby with any other arguments will run it as a dolt command.` RunSQL("select * from "+table+";", table) case 4: if len(args) == 0 { - // Request command - fmt.Print("dolt ") - fmt.Scanln(&args) + // Request command. Make dolt bold + fmt.Print("\033[1mdolt\033[0m ") + argstr := "" + fmt.Scanln(&argstr) + args = strings.Split(argstr, " ") } // Execute command @@ -94,6 +96,11 @@ Running debby with any other arguments will run it as a dolt command.` return } + // End of display + fmt.Print("Press enter to continue...") + fmt.Scanln() + // Clear screen + fmt.Print("\033[H\033[2J") // Reset choice choice = 0 // Print menu -- cgit v1.2.3-70-g09d2