错误一:
File "D:\Program Files\Python37\lib\site-packages\pwnlib\term\term.py", line 167
def goto((r, c)):
^
SyntaxError: invalid syntax
原因:
Tuple parameter unpacking is not supported in python3 (python3不再支持元组作为函数参数)。
解决方案:
打开term.py,修改部分代码,去除元组参数。
def goto(r, c): #改了这里
do('cup', r - scroll + height - 1, c)
def render_from(i, force = False, clear_after = False):
e = None
# `i` should always be a valid cell, but in case i f***ed up somewhere, I'll
# check it and just do nothing if something went wrong.
if i < 0 or i >= len(cells):
return
goto(cells[i].start[0],cells[i].start[1]) #改了这里
for c in cells[i:]:
if not force a