Handle `!` with r_core_cmd_str_pipe Fix 'afl' output Add help for 'px' command Add pxQ and pxW to show one word per line Fix segmented io with maps and sections Some test cases got fixed Add test-r_anal.py
28 lines
641 B
Python
Executable file
28 lines
641 B
Python
Executable file
#!/usr/bin/python
|
|
try:
|
|
from r_cons import RCons, Color_RED, Color_GREEN, Color_RESET
|
|
except:
|
|
from r2.r_core import RCons, Color_RED, Color_GREEN, Color_RESET
|
|
#, RCons_is_html
|
|
|
|
# Get the singleton instance
|
|
con = RCons()
|
|
|
|
# init is not necessary at all ..
|
|
# the _new () should initialize the singleton
|
|
# and return the instance itself
|
|
#con.init()
|
|
size = con.get_size()
|
|
print "COLUMNS %d"%size[0]
|
|
print "ROWS %d"%size[1]
|
|
|
|
con.printf("Hello World\n")
|
|
con.flush()
|
|
|
|
con.any_key()
|
|
con.clear()
|
|
|
|
#print dir(RCons.is_html)
|
|
#print "IS HTML %d"%int(RCons.is_html)
|
|
con.printf(Color_RED + "Hello "+Color_GREEN + "World\n" + Color_RESET)
|
|
con.flush();
|