Add case for pressing ESC

This commit is contained in:
HikariKnight 2023-10-27 09:01:04 +02:00
parent 47340a3c2e
commit ff7a4e846f
2 changed files with 9 additions and 0 deletions

View file

@ -71,6 +71,11 @@ func viewGPU(id string, ext ...int) {
// Parse the choice
switch choice {
case "":
// If ESC is pressed
fmt.Println("")
os.Exit(0)
case "ext":
// Run an extended relative search
viewGPU(id, 1)

View file

@ -72,6 +72,10 @@ func viewUSB(id string, ext ...int) {
// Parse the choice
switch choice {
case "":
// If ESC is pressed
fmt.Println("")
os.Exit(0)
case "n":
// Go back to selecting a gpu
selectUSB()