PHP Classes
elePHPant
Icontem

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    
Last Updated Ratings Unique User Downloads Download Rankings
2014-07-10 (4 years ago) RSS 2.0 feedNot yet rated by the usersTotal: 148 All time: 8,653 This week: 386Up
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.

  Performance   Level  
Name: David Tamas <contact>
Classes: 4 packages by
Country: Hungary Hungary
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:148
This week:0
All time:8,653
This week:386Up