Top Level Namespace

Defined Under Namespace

Modules: Logging Classes: ArgParser, LineByLine

Constant Summary collapse

APPNAME =

/***************************************************************************

*   ©2021-2021 Michael Uplawski <[email protected]>            *
*                                                                         *
*   This program is free software; you can redistribute it and/or modify  *
*   it under the terms of the GNU General Public License as published by  *
*   the Free Software Foundation; either version 3 of the License, or     *
*   (at your option) any later version.                                   *
*                                                                         *
*   This program is distributed in the hope that it will be useful,       *
*   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
*   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
*   GNU General Public License for more details.                          *
*                                                                         *
*   You should have received a copy of the GNU General Public License     *
*   along with this program; if not, write to the                         *
*   Free Software Foundation, Inc.,                                       *
*   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
***************************************************************************/
"Line By Line"
VERSION =
1.0
YEAR =
2021
SUMMARY =
"version information (argument -v) updated."
AUTHOR =
"Michael Uplawski"
AMAIL =
"<[email protected]>"

Instance Method Summary collapse

Instance Method Details

#wait_for_userObject



27
28
29
30
31
32
33
34
35
36
37
38
39
40
# File 'lib/user_input.rb', line 27

def wait_for_user()
	# @log.debug('wait_for_user() ')
	char = nil
	STDIN.raw do 
		STDIN.noecho do
			until (STDIN.ready?)
				sleep(0.1)
			end

			char = (STDIN.read_nonblock(1).ord rescue nil)
		end
	end
	return char
end