-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathatom.xml
89 lines (77 loc) · 7.49 KB
/
atom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title><![CDATA[Biu~]]></title>
<link href="/atom.xml" rel="self"/>
<link href="http://github.com/HankLiang/"/>
<updated>2016-02-04T03:53:36.000Z</updated>
<id>http://github.com/HankLiang/</id>
<author>
<name><![CDATA[Hank]]></name>
</author>
<generator uri="http://hexo.io/">Hexo</generator>
<entry>
<title><![CDATA[Linux console color]]></title>
<link href="http://github.com/HankLiang/2016/02/04/linux-console-color/"/>
<id>http://github.com/HankLiang/2016/02/04/linux-console-color/</id>
<published>2016-02-04T02:46:08.000Z</published>
<updated>2016-02-04T03:53:36.000Z</updated>
<content type="html"><![CDATA[<h3 id="Color_codes"><a href="#Color_codes" class="headerlink" title="Color codes"></a>Color codes</h3><p>This is a list of codes used in Javascript(or others) to change the text color:</p>
<ul>
<li>black - 30</li>
<li>red - 31</li>
<li>green - 32</li>
<li>brown - 33</li>
<li>blue - 34</li>
<li>magenta - 35</li>
<li>cyan - 36</li>
<li>lightgray - 37</li>
</ul>
<h3 id="Usage_of__26_2339_3B_5C033_5B_26_2339_3B"><a href="#Usage_of__26_2339_3B_5C033_5B_26_2339_3B" class="headerlink" title="Usage of '\033['"></a>Usage of <code>'\033['</code></h3><p>This is to handle the console cursor.<br>*’m’ character at the end of each of the following sentences is used as a stop character, where the system should stop and parse the \033[ sintax.</p>
<ul>
<li>\033[0m - is the default color for the console</li>
<li>\033[0;#m - is the color of the text, where # is one of the codes mentioned above</li>
<li>\033[1m - makes text bold</li>
<li>\033[1;#m - makes colored text bold**</li>
<li>\033[2;#m - colors text according to # but a bit darker</li>
<li>\033[4;#m - colors text in # and underlines</li>
<li>\033[7;#m - colors the background according to #</li>
<li>\033[9;#m - colors text and strikes it</li>
<li>\033[A - moves cursor one line above (carfull: it does not erase the previously written line)</li>
<li>\033[B - moves cursor one line under</li>
<li>\033[C - moves cursor one spacing to the right</li>
<li>\033[D - moves cursor one spacing to the left</li>
<li>\033[E - don’t know yet</li>
<li>\033[F - don’t know yet</li>
<li>\033[2K - erases everything written on line before this.</li>
</ul>
<h3 id="Simple_Demo"><a href="#Simple_Demo" class="headerlink" title="Simple Demo"></a>Simple Demo</h3><p>Written in node, make sure you have installed the node</p>
<figure class="highlight javascript"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br></pre></td><td class="code"><pre><span class="line"><span class="keyword">var</span> util = <span class="built_in">require</span>(<span class="string">'util'</span>);</span><br><span class="line"><span class="keyword">var</span> info = <span class="function"><span class="keyword">function</span>(<span class="params"></span>) </span>{</span><br><span class="line"> <span class="built_in">console</span>.info(<span class="string">'\033[33;1m'</span> + util.format.apply(<span class="literal">null</span>, <span class="built_in">arguments</span>) + <span class="string">'\033[0m'</span>);</span><br><span class="line">}</span><br><span class="line"><span class="keyword">var</span> error = <span class="function"><span class="keyword">function</span>(<span class="params"></span>) </span>{</span><br><span class="line"> <span class="built_in">console</span>.error(<span class="string">"\033[1;31;4m"</span> + util.format.apply(<span class="literal">null</span>, <span class="built_in">arguments</span>) + <span class="string">"\033[0m"</span>);</span><br><span class="line">};</span><br><span class="line">info(<span class="string">'balabala'</span>);</span><br><span class="line">error(<span class="string">'error'</span>);</span><br></pre></td></tr></table></figure>
]]></content>
<summary type="html">
<![CDATA[<h3 id="Color_codes"><a href="#Color_codes" class="headerlink" title="Color codes"></a>Color codes</h3><p>This is a list of codes used in Ja]]>
</summary>
<category term="linux" scheme="http://github.com/HankLiang/tags/linux/"/>
</entry>
<entry>
<title><![CDATA[Hello World]]></title>
<link href="http://github.com/HankLiang/2016/01/12/hello-world/"/>
<id>http://github.com/HankLiang/2016/01/12/hello-world/</id>
<published>2016-01-12T04:04:46.000Z</published>
<updated>2016-01-12T04:04:46.000Z</updated>
<content type="html"><![CDATA[<p>Welcome to <a href="http://hexo.io/" target="_blank" rel="external">Hexo</a>! This is your very first post. Check <a href="http://hexo.io/docs/" target="_blank" rel="external">documentation</a> for more info. If you get any problems when using Hexo, you can find the answer in <a href="http://hexo.io/docs/troubleshooting.html" target="_blank" rel="external">troubleshooting</a> or you can ask me on <a href="https://github.com/hexojs/hexo/issues">GitHub</a>.</p>
<h2 id="Quick_Start"><a href="#Quick_Start" class="headerlink" title="Quick Start"></a>Quick Start</h2><h3 id="Create_a_new_post"><a href="#Create_a_new_post" class="headerlink" title="Create a new post"></a>Create a new post</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo new <span class="string">"My New Post"</span></span><br></pre></td></tr></table></figure>
<p>More info: <a href="http://hexo.io/docs/writing.html" target="_blank" rel="external">Writing</a></p>
<h3 id="Run_server"><a href="#Run_server" class="headerlink" title="Run server"></a>Run server</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo server</span><br></pre></td></tr></table></figure>
<p>More info: <a href="http://hexo.io/docs/server.html" target="_blank" rel="external">Server</a></p>
<h3 id="Generate_static_files"><a href="#Generate_static_files" class="headerlink" title="Generate static files"></a>Generate static files</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo generate</span><br></pre></td></tr></table></figure>
<p>More info: <a href="http://hexo.io/docs/generating.html" target="_blank" rel="external">Generating</a></p>
<h3 id="Deploy_to_remote_sites"><a href="#Deploy_to_remote_sites" class="headerlink" title="Deploy to remote sites"></a>Deploy to remote sites</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo deploy</span><br></pre></td></tr></table></figure>
<p>More info: <a href="http://hexo.io/docs/deployment.html" target="_blank" rel="external">Deployment</a></p>
]]></content>
<summary type="html">
<![CDATA[<p>Welcome to <a href="http://hexo.io/" target="_blank" rel="external">Hexo</a>! This is your very first post. Check <a href="http://hexo.io]]>
</summary>
<category term="Hexo" scheme="http://github.com/HankLiang/tags/Hexo/"/>
<category term="安装配置篇" scheme="http://github.com/HankLiang/categories/%E5%AE%89%E8%A3%85%E9%85%8D%E7%BD%AE%E7%AF%87/"/>
</entry>
</feed>