Login   Register  
PHP Classes
elePHPant
Icontem

PHP CLI Input: Process keys pressed by the user in the shell

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2013-08-21 (11 months ago) RSS 2.0 feedNot yet rated by the usersTotal: 191 All time: 7,215 This week: 1,400Up
Version License PHP version Categories  
cli-input 0.3MIT/X Consortium License5.0PHP 5, Console
Description Author  

This class can process keys pressed by the user in the shell.

It can read the characters typed by the user in a command line shell ANSI terminal and return what the user entered.

The class can invoke given callback functions when the user presses certain keys like cursor, escape, return, tab, backspace, delete, or any other character.

The callback functions can perform actions that alter the text entered by the user like for instance performing auto-completion.

Picture of Gaspar
Name: Gaspar <contact>
Classes: 1 package by
Country: Spain Spain
Age: ???
All time rank: 359593 in Spain Spain
Week rank: 1790 Up44 in Spain Spain Up

  Files folder image Files  
File Role Description
Plain text file CLIInput.class.php Class Class source
Accessible without login Plain text file clitest.php Example Example script
Accessible without login Plain text file clitest2.php Example Example script
Accessible without login Plain text file README.md Data Auxiliary data

 Version Control Unique User Downloads Download Rankings  
 100%Total:191All time:7,215
 This week:0This week:1,400Up
 User Comments (1)  
 
good
10 months ago (Rahul Shambharkar)
70%StarStarStarStar