Search code examples
pythonlettuce

Lettuce and strange characters


I tried to run Lettuce. Normally works, however when I used:

lettuce | less

there are a lot of color commands like:

ESC[1;37m

How to get rid of that when writing into file?

For example cucumber prints nice colors in the console, and normal text in less and file.


Solution

  • This should work:

    $ lettuce | less -R   # keep the colors
    

    or

    $ lettuce -v 3        # remove the colors