cuvner icon indicating copy to clipboard operation
cuvner copied to clipboard

python3: click.echo vs. print()

Open meejah opened this issue 8 years ago • 0 comments

With cuv lessopen, if I print('...'.encode('utf8') then less -R works properly (i.e. shows colours) but if I click.echo('...') then the colours don't work with less. Don't know why.

..and in Python3 the print() with encode prints out a binary repr of the string, basically.

meejah avatar Jan 10 '16 06:01 meejah