andreasvc / disco-dop

Discontinuous Data-Oriented Parsing
http://discodop.readthedocs.io
GNU General Public License v2.0
46 stars 16 forks source link

Add options for --ansi and --unicode #40

Closed heatherleaf closed 7 years ago

heatherleaf commented 10 years ago

When running an experiment, the log output is now always in ansi color and unicode characters. This does not work well with most text editors, if I want to read the file output.log afterwards. (Especially the ansi colors)

It would be nice if one could set the ansi and unicodelines could be set/unset in the .prm file.

andreasvc commented 10 years ago

I'll consider adding such an option. In the meantime, here are some workarounds:

  1. you can view the log file with colors in a terminal using "less -R". There are probably other viewers with support for ANSI codes.
  2. the ansi codes can be removed with a script, e.g. http://www.commandlinefu.com/commands/view/3584/remove-color-codes-special-characters-with-sed