CLI Magic: Get input and display console output using tput

Recommend this page to a friend!
  Info   View files Example   Screenshots Screenshots   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 157 This week: 1All time: 8,759 This week: 254Up
Version License PHP version Categories
cli-magic 1.0BSD License5.4PHP 5, Unix, Console
Description Author

This class can get input and display console output using the tput amd stty commands.

It can perform several types of operations display information on a console using the tput and stty commands to provide a terminal type independent solution.

Currently it can clear the screen or a given area rectangle, show or hide the cursor, place the cursor in a given position, set the foreground and background colors, drawing borders with titles,

The class can also get input and information from the terminal console like checking of the user pressed a key, getting characters that the user typed, the width and height of the terminal window, call a function when the the window size is changed.

Picture of David Tamas
  Performance   Level  
Name: David Tamas <contact>
Classes: 4 packages by
Country: Hungary Hungary
Age: 33
All time rank: 322031 in Hungary Hungary
Week rank: 261 Up5 in Hungary Hungary Up
Innovation award
Innovation award
Nominee: 1x

Screenshots  
  • screenshot.jpg
  Files folder image Files  
File Role Description
Plain text file cli.php Class main classes
Accessible without login Plain text file example.php Example example

 Version Control Unique User Downloads Download Rankings  
 0%
Total:157
This week:1
All time:8,759
This week:254Up

For more information send a message to info at phpclasses dot org.