- Strip all ANSI (color) codes (if not already stripped by special handlers like
scala -color never
). Use https://github.com/mmlb/ansi2txt/blob/main/ansi2txt.py.
- Special case list:
scala
needsscala -color never
- Strip (with an option?) ANSI control codes in the help output from some ommands (like
scala
). Colour escape code for example look like[0m
(or hex1b 5b 30 6d
).
-
Handle commands which are only reachable in particular virtualenvs or Pipenv setups. I.e. allow something like
(cd /directory/with/pipfile; pipenv run pweave --help)
to run. Might be not easy to include in Emacs man system.
- Make moreman in the case of an internal error return exit status Ok (and output the error to stdout), so that Emacs shows the info.
- Option to suppress the man page header (for commands which generate their own headers. E.g.
pipenv --man
)
-
For commands with man page: option to "force" moreman/--help
processing -
For commands with man page: recognise when a moreman option is used and switch implicitly to force mode
-
Special case list:
pew
needspew
(without args) -
Handle commands which have no man page and no
--help
option. Use a Special case list. *This might need a config file for these special cases)