Simple Menu for User Input

Posted September 2, 2005 by gevery77 in Bourne shell scripting

This script will create an input screen in BASH that allows the user to enter information just as they would in a window. This is to show the use of simple functions as well as the tput command. The command “tput cup” allows the developer to place the cursor anywhere on the screen. There are many more commands that tput recognizes. See the main page for more information.


#!/bin/bash

## Clears the screen and builds the user input screen

function screen() {
clear
cat <

The Conversation

Follow the reactions below and share your own thoughts.