message_and_read
Updated: Sept 16, 2017

A bash tool for printing a message and reading a response.


% message_and_read --help 
Usage: message_and_read mess.0 
arg1 - name of file with user message to be displayed 

Enter any key to roceed with the view of help:
message_and_read:
  A general code for printing a bash message and reading a response. 
I use this a lot in ds9 routines where I want a message printed for 
the user and then wait for the user response. 

Example:
% cat mess.0
Circle stars with RED circle, then enter response code.

% message_and_read mess.0
Circle stars with RED circle, then enter response code.
Enter response: J
J
 % ls
mess.0	message_and_answer.out
% cat message_and_answer.out
J

*** The answer goes to standard out and a file = message_and_answer.out





Back