diff options
-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 |