AsyncCLI/input.py
def input(prompt = ""):
	"""
	First time it's called, it starts prompting the user for a line of input.
	After the user has returned a line, the function will return the result as a string
	If called after this, then a new prompt will be started.
	"""
	global _listener
	if not _listener:
		_listener = _reader(prompt)
		_listener.start()
		return None
	elif _listener.isAlive():
		return None
	else:
		if _listener.result != None:
			ret = _listener.result
			_listener = None
			return ret
		else:#softlocked?
			return None

	First time it's called, it starts prompting the user for a line of input.
	After the user has returned a line, the function will return the result as a string
	If called after this, then a new prompt will be started.
	
First time it's called, it starts prompting the user for a line of input.
After the user has returned a line, the function will return the result as a string
If called after this, then a new prompt will be started.
First time it ' s called it starts prompting the user for a line of input . After the user has returned a line the function will return the result as a string If called after this then a new prompt will be started .
def input(prompt = ""):
	global _listener
	if not _listener:
		_listener = _reader(prompt)
		_listener.start()
		return None
	elif _listener.isAlive():
		return None
	else:
		if _listener.result != None:
			ret = _listener.result
			_listener = None
			return ret
		else:
			return None
def input ( prompt = "" ) : global _listener if not _listener : _listener = _reader ( prompt ) _listener . start ( ) return None elif _listener . isAlive ( ) : return None else : if _listener . result != None : ret = _listener . result _listener = None return ret else : return None
First time it's called, it starts prompting the user for a line of input.
First time it ' s called it starts prompting the user for a line of input .
"""
	First time it's called, it starts prompting the user for a line of input.
	After the user has returned a line, the function will return the result as a string
	If called after this, then a new prompt will be started.
	""" #softlocked?
prompt