Esempio n. 1
0
def cleanup():
    GnuRL.cleanup()
    pass
Esempio n. 2
0
# -*- coding: utf-8 -*-
import IPython
import GnuRL

try:
    IPython.Shell.start().mainloop(sys_exit=False)
finally:
    GnuRL.cleanup()
Esempio n. 3
0
# -*- coding: utf-8 -*-
import GnuRL

console = GnuRL.RLWrapper()

def cleanup():
    GnuRL.cleanup()
    pass

def parse_and_bind(string):
    console.parse_and_bind(string)
    pass

def get_line_buffer():
    return console.get_line_buffer()

def read_init_file(filename):
    console.read_init_file(filename)
    pass

def read_history_file(filename="~/.ipython/jhistory"):
    console.read_history_file(filename)
    pass
    
def write_history_file(filename="~/.ipython/jhistory"):
    console.write_history_file(filename)
    pass
        
def clear_history():
    console.clearHistory()
    pass
# -*- coding: utf-8 -*-
import IPython
import GnuRL

try:
   IPython.Shell.start().mainloop(sys_exit=False)
finally:
 GnuRL.cleanup()