Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Disable coloring doesn't work?

See original GitHub issue

Hello, i tried disabling coloring wiith config file:

$ cat ~/.pdir2config
uniform-color = bright white

but pdir still prints color characters in xonsh eg, when I run pdir(__xonsh__.history) lines look like:

    ?[1;37mall_items?[0m?[1;37m: ?[0m?[1;37mReturns all history as found in XONSH_DATA_DIR.?[0m
    ?[1;37mappend?[0m?[1;37m: ?[0m?[1;37mAppends command to history.?[0m
    ?[1;37mclear?[0m?[1;37m: ?[0m?[1;37mClears the current session's history from both memory and disk.?[0m
    ?[1;37mflush?[0m?[1;37m: ?[0m?[1;37mFlushes the current command buffer to disk.?[0m
    ?[1;37minfo?[0m?[1;37m: ?[0m?[1;37mA collection of information about the shell history.?[0m
    ?[1;37mitems?[0m?[1;37m: ?[0m?[1;37mDisplay history items of current session.?[0m
    ?[1;37mrun_gc?[0m?[1;37m: ?[0m?[1;37mRun the garbage collector.?[0m

How to get rid of these characters? Either disable coloring or make them work for xonsh.

  • pdir2 v0.3.5
  • xonsh v0.11.0 and latest v0.12.2

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

laike9mcommented, Jul 3, 2022

In 0.3.6 you can disable color, see

Let me know if you encounter any issues.

laike9mcommented, Jul 1, 2022

I’ll cut a new release this weekend

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to disable syntax coloring in Visual Studio Code
I would like to disable syntax coloring altogether.
Read more >
Disable color highlighting - Emacs Stack Exchange
If all of the coloring is from font-lock-mode you can just turn off that mode. You can also get the effect of removing...
Read more >
Turn off color in Linux terminal/bash session - nixCraft
This page explains how to disable color in shell/terminal for ls, grep, vim, ... To see current value run the following echo command:...
Read more >
Can you disable coloring in the code block macro?
I don't think it's possible to completely disable the colors. If you want something that looks like the code block macro, but you...
Read more >
How to turn off all colors - Vim Tips Wiki - Fandom
If you're like me, you don't want a colorful editor. I spent hours looking for a "turn off all those colors right now!!"...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found