title: How to use escape sequences in a ZSH prompt for truecolor or bold?
body: <p>I am in the middle of customizing my ZSH prompt but am seemingly unable to use escape sequences to tell Konsole to use bold text or a specific RGB color.</p>
  <p>I know about the built in formatting options in ZSH, like <code>%F{000} %f</code>, but as far as I know, those options only allow access to the defaults(red, blue, etc) and the 256 color palette. While <code>%B %b</code>, the built-in option for bold, does work, it seems limited to just one color.</p>
  <p>What I want to be able to do is color a specific section of the prompt using all RGB colors and/or make it bold. From what I could find, something like this should work:</p>
  <pre><code>PS1=&quot;%{\e[38;0;255;0;255m%}%M &gt;:%{\e[0m%}&quot;
  </code></pre>
  <p>That should give me a pink prompt like this:</p>
  <pre><code>HOSTNAME &gt;:                  
  </code></pre>
  <p>But what I get is this:</p>
  <pre><code>\e[38;0;255;0;255mHOSTNAME &gt;:\e[0m
  </code></pre>
  <p>I have tried different escape sequences like <code>\033</code> <code>\x1b</code>, but nothing seems to work.</p>
  <p>So, how do I properly use escape sequences in ZSH prompts?</p>
  <br>
  <br>
      
  <p>Specifics:</p>
  <p>OpenSUSE Tumbleweed KDE</p>
  <p>Konsole --version 16.12.0 (Keyboard:XFree 4)</p>
  <p>ZSH --version 5.3</p>