PHP Classes

CLI Magic: Get input and display console output using tput

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in
  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 (1 year ago) RSS 2.0 feedNot yet rated by the usersTotal: 130 All time: 7,873 This week: 1,079Up
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
Name: David Tamas <contact>
Classes: 1 package by
Country: Hungary Hungary
Age: 28
All time rank: 381236 in Hungary Hungary
Week rank: 1529 Up14 in Hungary Hungary Up

  • 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:130All time:7,873
 This week:0This week:1,079Up