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
Example #2
0
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
Example #3
0
File: simul.py Project: TheBB/simul
def swipe_history():
    readline.remove_history_item(readline.get_current_history_length()-1)
Example #4
0
def swipe_history():
    readline.remove_history_item(readline.get_current_history_length()-1)