vgrabovets
12/17/2016 - 3:57 PM

get history

get history

import readline
for i in range(readline.get_current_history_length()):
    print readline.get_history_item(i + 1)