aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJoop Kiefte <ikojba@gmail.com>2023-09-28 01:57:30 +0100
committerJoop Kiefte <ikojba@gmail.com>2023-09-28 01:57:30 +0100
commit858575241603ae7932fb5d740e5651c10e04558b (patch)
tree0ba0950341733da05f3f63fd48a1b6a06a884eb5 /main.go
parentca6e7dab2012a817a1d376e708107d3ba4e51b88 (diff)
Polishing
Diffstat (limited to 'main.go')
-rw-r--r--main.go13
1 files 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