Skip to content

[Feature Request] terminal awareness #12

@eddelbuettel

Description

@eddelbuettel

Being a YUGE fan of tinytest I now use it all the time at the command-line, which of course lead
to (starting to write an approximation to a) first command-line wrapper using littler.

One nicety with having these shorter wrapper is that one can then use C-x c to invoke the compile-command which is an editable string we can replace from its default of make -k to, say, tt.r -a to invoke the tinytest wrapper in test_all() mode on the current directory.

Which works swimmingly but renders a somewhat unreadable display:

-*- mode: compilation; default-directory: "~/git/anytime/" -*-
Compilation started at Sat Jun  8 09:56:43

tt.r -a
Running test_all_formats.R (00|�[0;32m00�[0m|�[0;31m00�[0m)
Running test_all_formats.R (36|�[0;32m36�[0m|�[0;31m00�[0m)
Running test_assertions.R (02|�[0;32m02�[0m|�[0;31m00�[0m)
Running test_bulk.R (2328|�[0;32m2328�[0m|�[0;31m00�[0m)
Running test_gh_issue_12.R (02|�[0;32m02�[0m|�[0;31m00�[0m)
Running test_gh_issue_33.R (02|�[0;32m02�[0m|�[0;31m00�[0m)
Running test_gh_issue_5.R (04|�[0;32m04�[0m|�[0;31m00�[0m)
Running test_gh_issue_56.R (07|�[0;32m07�[0m|�[0;31m00�[0m)
Running test_gh_issue_84.R (00|�[0;32m00�[0m|�[0;31m00�[0m)
Running test_gh_issues_36_51.R (00|�[0;32m00�[0m|�[0;31m00�[0m)
Running test_r_format.R (01|�[0;32m01�[0m|�[0;31m00�[0m)
Running test_simple.R (25|�[0;32m25�[0m|�[0;31m00�[0m)
Running test_utilities.R (03|�[0;32m03�[0m|�[0;31m00�[0m)
Running test_validate.R (07|�[0;32m07�[0m|�[0;31m00�[0m)

Compilation finished at Sat Jun  8 09:56:44

So could we, in a dumb terminal, turn of the otherwise excellent colours?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions