diff options
author | Joop Kiefte <ikojba@gmail.com> | 2023-09-28 01:57:30 +0100 |
---|---|---|
committer | Joop Kiefte <ikojba@gmail.com> | 2023-09-28 01:57:30 +0100 |
commit | 858575241603ae7932fb5d740e5651c10e04558b (patch) | |
tree | 0ba0950341733da05f3f63fd48a1b6a06a884eb5 /main.go | |
parent | ca6e7dab2012a817a1d376e708107d3ba4e51b88 (diff) |
Polishing
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 13 |
1 files changed, 10 insertions, 3 deletions
@@ -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 |