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

Shell Scripting Tutorial: Reading Cursor, Function Keys

Up
vote
Down

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:7555 | -Ray, November 6, 2005
More Programming articles...

Colorful Abstract Art

coding headlines

No Starch Press has published my Perl One-Liners book!

 

Firefox sidebar

Site map

Site info

News feed

Features

Login
(to post)

Search

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