Commit 3e996a2b authored by Nico Schallehn's avatar Nico Schallehn

test

parent ce5390c1
......@@ -3,6 +3,12 @@
$colors = new Colors();
function clearscreen($out = TRUE) {
$clearscreen = chr(27)."[H".chr(27)."[2J";
if ($out) print $clearscreen;
else return $clearscreen;
}
//echo "md5: ".$colors->getColoredString("Fehler!", "white", "red") .PHP_EOL;
//echo "md5: ".$colors->getColoredString("Erfolgreich!", "white", "green") .PHP_EOL;
/*
......@@ -26,6 +32,7 @@ if(isset($argv[1])){
$exit = false;
clearscreen();
do{
echo "Bitte Befehl eingeben:";
$name = trim(fgets(STDIN));
......@@ -34,6 +41,9 @@ do{
case "exit":
$exit = true;
break;
case "filme":
echo $colors->getColoredString("Filme", "black", "light_gray") .PHP_EOL;
break;
default:
echo $colors->getColoredString("Benutzung:", "black", "light_gray") .PHP_EOL;
echo " filme [Pfad zum einlesen] [Zielfestplatte]".PHP_EOL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment