I'm using Bash Windows 10 Bash (WSL). I need to put echo -e '\e[9999H' at the beginning of my .bashrc script in order for it to have 24-bit colors in ConEmu. This unfortunately makes my prompt start at the bottom instead of at the top. I then have to clear or ctrl + l the console. So can I put it in my .bashrc script so it does that every time I start my terminal?

  • 1
    Why don't you just try it?
    – user147505
    Nov 18, 2016 at 4:29
  • I have tried many things. Though apparently, it won't work as from the ConEmu dev said if I clear the terminal, the colors will stop working and there isn't currently any work around.
    – ErraticFox
    Nov 18, 2016 at 4:39
  • I thought you said you do use clear or <kbd>Ctrl</kbd>+<kbd>l</kbd>. And if you do, then it doesn't matter if it's by hand or from the script. You need to resource .bashrc though for the changes in it to take place in the shell.
    – user147505
    Nov 18, 2016 at 4:46
  • The given echo has nothing to do with color. Nov 18, 2016 at 23:45
  • @ThomasDickey github.com/Maximus5/ConEmu/issues/953
    – ErraticFox
    Nov 19, 2016 at 3:56

1 Answer 1


Well, apparently it works when the line with


is in the .bashrc file. Of course after the line with

echo -e '\e[9999H'

The effect will take place after shell restart or recourcing .bashrc. This is done so:

. ~/.bashrc

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .