PHP Classes

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 (5 years ago) RSS 2.0 feedNot yet rated by the usersTotal: 152 All time: 8,734 This week: 331Up
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
Age: 33
All time rank: 325534 in Hungary Hungary
Week rank: 763 Up11 in Hungary Hungary Up
Innovation award
Innovation award
Nominee: 1x


  • 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  
This week:0
All time:8,734
This week:331Up