(Show all Scripting articles . . .
Headlines | Linux | Apps | Coding | BSD | Admin | News
Information for Linux System Administration 

Shell Scripting Tutorial: Reading Cursor, Function Keys


This tutorial includes examples of how to read arrow keys and function keys with the bash shell...
My preferred shell for interactive scripting is bash because of the readline library and the extensions to the read command. In this article, I will forsake portability for the clarity of bash (version 2 or later). If you want to use stty and dd, the principles are the same. You can find out more about using dd in Mouse Reporting in a Shell Script and Trapping Special Characters in the Korn Shell; the techniques in this article are similar to the ones discussed there.
 read more | mail this link | score:7440 | -Ray, November 6, 2005
More Programming articles...

Beautiful Abstract Art Prints

Selected articles

Linux dominates Windows

How to install Ubuntu Linux on the decTOP SFF computer

Apple to Intel move no threat to Linux

Missing the point of the Mac Mini

Programming Language Tradeoffs: 3GL vs 4GL

The short life and hard times of a Linux virus


Firefox sidebar

Site map

Site info

News feed


(to post)


Articles are owned by their authors.   © 2000-2012 Ray Yeargin