Start process to away from bubbletea to a more simpler solution for this projects needs

This commit is contained in:
HikariKnight 2023-10-26 20:03:15 +02:00
parent cc6db38d74
commit c1ea5e5163
10 changed files with 298 additions and 65 deletions

View file

@ -4,6 +4,7 @@ import (
"bytes"
"encoding/base64"
"io"
"os"
"os/exec"
"time"
@ -88,3 +89,10 @@ func Elevate(password string) {
err = cmd.Wait()
errorcheck.ErrorCheck(err, "\nError, password given was wrong")
}
// Function to just clear the terminal
func Clear() {
c := exec.Command("clear")
c.Stdout = os.Stdout
c.Run()
}