plasma-disassembler / plasma

Plasma is an interactive disassembler for x86/ARM/MIPS. It can generates indented pseudo-code with colored syntax.
GNU General Public License v3.0
3.05k stars 275 forks source link

Docker visual mode #43

Closed redfast00 closed 8 years ago

redfast00 commented 8 years ago

When I use reverse in Docker, everything works, except visual mode. As soon as I use the 'v' command, it crashes. Will add the error later, but it has to do with curses.

ghost commented 8 years ago

@netantho any ideas ?

redfast00 commented 8 years ago

So: this is the error.

Traceback (most recent call last): File "/reverse/reverse.py", line 30, in i = Interactive(ctx) File "/reverse/lib/interactive.py", line 381, in init rl.loop() File "/reverse/lib/readline.py", line 123, in loop self.process_key(ch) File "/reverse/lib/readline.py", line 133, in process_key self.mapping[ch]() File "/reverse/lib/readline.py", line 325, in k_enter self.callback_enter(self.line) File "/reverse/lib/interactive.py", line 524, in exec_command c.callback_exec(args) File "/reverse/lib/interactive.py", line 722, in __exec_v Visual(self, self.ctx.dis, o) File "/reverse/lib/visual.py", line 103, in init curses.init_pair(1, 253, 66) # for the highlight search _curses.error: init_pair() returned ERR

BestPig commented 8 years ago

Setting the environment variable TERM to xterm-256color fixed the problem, but I don't known if it's the proper way to solve it.

ghost commented 8 years ago

Thanks for the fix !

ghost commented 8 years ago

I've merged your branch.

netantho commented 8 years ago

Sorry for the delay, yes lgtm :-)