English: $ text; text.$text; $this-> text = "; = ''; return $this; } //Input public function readNumeric () ) { $stdin = fopen (' php://stdin ', ' r '); ('php://stdin', 'r'); $line = trim (fgets ($stdin)); (fgets($stdin)); fscanf ($stdin, "%d ", $number); , "%d ", $number); return $number; } public function readString () ) { $stdin = fopen (' php://stdin ', ' r '); ('php://stdin', 'r'); $line = trim (fgets ($stdin)); (fgets($stdin)); fscanf ($stdin, "%s ", $string); , "%s ", $string); return $string; } //Sound public function beep () {echo "\007"; return $this;} ) { echo "\007"; return $this; } public function setSoundHerz ($herz=100) {echo "\033 [10; {$herz}]"; return $this;} $herz=100) { echo "\033[10;{$herz}]"; return $this; } public function setSoundLong ($milliseconds=500) {echo "' 033 [11; {$milliseconds}]"; return $this;} $milliseconds=500) { echo "'033[11;{$milliseconds}]"; return $this; } //Cursor position public function toPos ($row = 1, $column = 1) {echo "\033 [{$row}; {$column} H"; return $this;} $row = 1, $column = 1 ) { echo "\033[{$row};{$column}H"; return $this; } public function cursorUp ($lines=1) {echo "\033 [{$lines} A"; return $this;} $lines=1) { echo "\033[{$lines}A"; return $this; } public function cursorDown ($lines=1) {echo "\033 [{$lines} B"; return $this;} $lines=1) { echo "\033[{$lines}B"; return $this; } public function cursorRight ($columns=1) {echo "\033 [{$columns} C"; return $this;} $columns=1) { echo "\033[{$columns}C"; return $this; } public function cursorLeft ($columns=1) {echo "\033 [{$columns} D"; return $this;} $columns=1) { echo "\033[{$columns}D"; return $this; } //Text colours public function setStyle ($style ='default ') {$this-> text.
French: $ text; text.$text; $this-> text = "; = ''; return $this; } //Input public function readNumeric () ) { $stdin = fopen (' php://stdin ', ' r '); ('php://stdin', 'r'); $line = trim (fgets ($stdin)); (fgets($stdin)); fscanf ($stdin, "%d ", $number); , "%d ", $number); return $number; } public function readString () ) { $stdin = fopen (' php://stdin ', ' r '); ('php://stdin', 'r'); $line = trim (fgets ($stdin)); (fgets($stdin)); fscanf ($stdin, "%s ", $string); , "%s ", $string); return $string; } //Sound public function beep () {echo "\007"; return $this;} ) { echo "\007"; return $this; } public function setSoundHerz ($herz=100) {echo "\033 [10; {$herz}]"; return $this;} $herz=100) { echo "\033[10;{$herz}]"; return $this; } public function setSoundLong ($milliseconds=500) {echo "' 033 [11; {$milliseconds}]"; return $this;} $milliseconds=500) { echo "'033[11;{$milliseconds}]"; return $this; } //Cursor position public function toPos ($row = 1, $column = 1) {echo "\033 [{$row}; {$column} H"; return $this;} $row = 1, $column = 1 ) { echo "\033[{$row};{$column}H"; return $this; } public function cursorUp ($lines=1) {echo "\033 [{$lines} A"; return $this;} $lines=1) { echo "\033[{$lines}A"; return $this; } public function cursorDown ($lines=1) {echo "\033 [{$lines} B"; return $this;} $lines=1) { echo "\033[{$lines}B"; return $this; } public function cursorRight ($columns=1) {echo "\033 [{$columns} C"; return $this;} $columns=1) { echo "\033[{$columns}C"; return $this; } public function cursorLeft ($columns=1) {echo "\033 [{$columns} D"; return $this;} $columns=1) { echo "\033[{$columns}D"; return $this; } //Text colors public function setStyle ($style ='default ') {$this-> text.