# How to disable command line terminal colour and other text formatting?

**URL:** <https://root-forum.cern.ch/t/how-to-disable-command-line-terminal-colour-and-other-text-formatting/49592>\
**Category:** Newbie\
**Created:** [April 15, 2022, 8:05am UTC](https://root-forum.cern.ch/t/how-to-disable-command-line-terminal-colour-and-other-text-formatting/49592 "2022-04-15T08:05:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jaymorgan](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/j/848f3c/32.png) [@jaymorgan](https://root-forum.cern.ch/u/jaymorgan)\
**Post date:** [April 15, 2022, 8:05am UTC](https://root-forum.cern.ch/t/how-to-disable-command-line-terminal-colour-and-other-text-formatting/49592/1 "2022-04-15T08:05:09Z")

</div>

Hello,

Is there a way to disable all terminal colours and other text formatting functionality (thereby disabling the use of ascii character codes) when using the root REPL? For example, if I start a new instance of the REPL, and type the characters ‘int’, this text is made bold and coloured blue. Is it possible to disable this functionality and simply leave the text as it is?

I’ve tried the following:

- export TERM=dumb before starting the REPL.
- setting the rawInput variable in the REPL.
- running in batch mode.
- disabling the execution of logon/logoff macros.

* * *

_ROOT Version:_ 6.26/00  
_Platform:_ Debian Linux  
_Compiler:_ 10.2.1

* * *

---

<div class="post-metadata">

**Author:** ![jaymorgan](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/j/848f3c/32.png) [@jaymorgan](https://root-forum.cern.ch/u/jaymorgan)\
**Post date:** [April 15, 2022, 9:48am UTC](https://root-forum.cern.ch/t/how-to-disable-command-line-terminal-colour-and-other-text-formatting/49592/2 "2022-04-15T09:48:28Z")

</div>

I have found a solution.

For those looking to do the same, you can modify the rootrc file as mentioned in section 2.7 of: [https://root.cern.ch/root/htmldoc/guides/users-guide/ROOTUsersGuide.html#the-root-command-line](https://root.cern.ch/root/htmldoc/guides/users-guide/ROOTUsersGuide.html#the-root-command-line)

Specifically, within the rootrc file, there are the variables:

```auto
#Rint.TypeColor: bold blue
#Rint.BracketColor: bold green
#Rint.BadBracketColor: bold red underlined
#Rint.PromptColor: default
#Rint.TabComColor: magenta

```

By un-commenting these lines and setting their values to `default`, the REPL will keep the current terminal colour.
