<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: sun6eal</title>
    <description>The latest articles on DEV Community by sun6eal (@sun6eal).</description>
    <link>https://dev.to/sun6eal</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F73986%2F035e2ce6-19d4-48a2-b1dd-9f94b924a995.jpg</url>
      <title>DEV Community: sun6eal</title>
      <link>https://dev.to/sun6eal</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sun6eal"/>
    <language>en</language>
    <item>
      <title>Change font and theme of WSL/Bash</title>
      <dc:creator>sun6eal</dc:creator>
      <pubDate>Thu, 14 Feb 2019 13:50:17 +0000</pubDate>
      <link>https://dev.to/sun6eal/change-font-and-theme-of-wslbash-29eg</link>
      <guid>https://dev.to/sun6eal/change-font-and-theme-of-wslbash-29eg</guid>
      <description>&lt;h1&gt;
  
  
  Theme
&lt;/h1&gt;

&lt;p&gt;As this &lt;a href="https://blogs.msdn.microsoft.com/commandline/2016/09/22/24-bit-color-in-the-windows-console/" rel="noopener noreferrer"&gt;post&lt;/a&gt; pointed out, windows console supports 24bit color. Open a cmd.exe or ubuntu bash window, right click the title bar, select &lt;code&gt;Properties&lt;/code&gt; and you are good to go.&lt;/p&gt;

&lt;p&gt;Just for curiousness, this script(&lt;a href="https://github.com/bitcrazed/24bit-color" rel="noopener noreferrer"&gt;https://github.com/bitcrazed/24bit-color&lt;/a&gt;) can display color bar in your terminal for test.&lt;/p&gt;

&lt;h2&gt;
  
  
  Color tool
&lt;/h2&gt;

&lt;p&gt;In this &lt;a href="https://blogs.msdn.microsoft.com/commandline/2017/08/11/introducing-the-windows-console-colortool/" rel="noopener noreferrer"&gt;post&lt;/a&gt;, a color tool can help you quickly apply a &lt;code&gt;itemcolors&lt;/code&gt; theme to your terminal.&lt;/p&gt;

&lt;h2&gt;
  
  
  Tmux
&lt;/h2&gt;

&lt;p&gt;Tmux now supports 256 colors, we can set colors like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# .tmux.conf
set -g status-fg colour255
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Tips: You have to kill all other tmux sessions to see your changes. &lt;/p&gt;

&lt;p&gt;For full color name list, check &lt;a href="https://unix.stackexchange.com/questions/105568/how-can-i-list-the-available-color-names" rel="noopener noreferrer"&gt;this&lt;/a&gt; out.&lt;/p&gt;

&lt;h1&gt;
  
  
  Font
&lt;/h1&gt;

&lt;p&gt;Windows console are very nitpicking, we can only choose fonts designed for the current code page. The bash on ubuntu on windows uses utf8 code page, and the cmd.exe usually uses another code page. We can't change it permanently, that is very annony.&lt;/p&gt;

&lt;p&gt;After a lot of dirty works, I still could not get it work, and finally this &lt;a href="https://github.com/be5invis/Sarasa-Gothic" rel="noopener noreferrer"&gt;font&lt;/a&gt; comes to rescue, set it to cmd.exe and the wsl/bash separatelly.&lt;/p&gt;

&lt;p&gt;Here is the screen shot.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpclbdhrba9h140jesx7i.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpclbdhrba9h140jesx7i.png" alt="screenshot"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>wslbash</category>
    </item>
  </channel>
</rss>
