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    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 164 All time: 8,790 This week: 252Up
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: 5 packages by
Country: Hungary Hungary
Age: 35
All time rank: 313429 in Hungary Hungary
Week rank: 337 Up5 in Hungary Hungary Up
Innovation award
Innovation award
Nominee: 2x

Winner: 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,790
This week:252Up
For more information send a message to info at phpclasses dot org.