sandsifter icon indicating copy to clipboard operation
sandsifter copied to clipboard

256-color terminal required (make it work with putty)

Open ghost opened this issue 8 years ago • 2 comments

Hello

I get errors when running the program from putty: terminal output is messed up and I get this message:

_curses.error: init_pair() returned ERR

as explained here: https://stackoverflow.com/questions/18551558/how-to-use-terminal-color-palette-with-curses

I had TERM=xterm-256color

To make it work I had to set TERM=xterm-256color

You could add a warning that the TERM value is not OK, or fall back to simpler colors.

ghost avatar Jul 28 '17 10:07 ghost

I guess you meant: „I had TERM=xterm“, right?

At least, I can reproduce this issue setting TERM=xterm, and running ./sifter.py --unk --dis --len --sync --tick -- -P1 -texit.

paulmenzel avatar Jul 28 '17 11:07 paulmenzel

yes that was what I meant :)

f4grx avatar Jul 28 '17 11:07 f4grx