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

Abstract Art by Ray Yeargin

coding headlines

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

OpenShift Online: a non-developer guide

Detailed Error Handling In Bash

Tutorial: Create an NFS-like Storage Server with GlusterFS on Ubuntu 12.10


Firefox sidebar

Site map

Site info

News feed


(to post)


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