fqless icon indicating copy to clipboard operation
fqless copied to clipboard

opening not supported file messes up colors

Open openpaul opened this issue 7 years ago • 2 comments

./fqless fqless will after cloning using q mess up the colors of the terminal.

openpaul avatar Apr 17 '17 13:04 openpaul

This seems to be more compilicated. Did not find a quick solution yet.

Moreover this is terminal specific. On I3 debian testing this bug could not be reproduced only on ubuntu Xfce

openpaul avatar Apr 17 '17 13:04 openpaul

The reason for this bug is, that ncurses redefines the colors of the terminal. Usually this happens only for the integers, used by the fastq file as quality values but can also happen for colors 1-8 usually used by terminals.

After exiting, the colors can not be restored by ncurses, there is no routine for it and the one written in this commit 34ad24528fa923b1dd458acb4e92c7a9e14051c4 does not work as expected (colors are to bright after restore).

Thus I now use colors from 256 down, so most of the colors used by fqless will not interfere with the usual colors of the terminal.

This bug is not fixed

openpaul avatar Apr 23 '17 12:04 openpaul