def raw_input_no_history(*args): global pipedinput if pipedinput: try: input = raw_input() except EOFError: connection.close() exit(0) return input try: input = raw_input(*args) except: return None if input!='': try: readline.remove_history_item(readline.get_current_history_length()-1) except: pass return input
def raw_input_no_history(*args): global pipedinput if pipedinput: try: input = raw_input() except EOFError: connection.close() exit(0) return input try: input = raw_input(*args) except: return None if input != '': try: readline.remove_history_item(readline.get_current_history_length() - 1) except: pass return input
def swipe_history(): readline.remove_history_item(readline.get_current_history_length()-1)