<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>farben &#8211; SystemTechnics</title>
	<atom:link href="https://www.systemtechnics.de/tag/farben/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.systemtechnics.de</link>
	<description>IT Consulting</description>
	<lastBuildDate>Sat, 13 Mar 2021 10:35:28 +0000</lastBuildDate>
	<language>de</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	

<image>
	<url>https://www.systemtechnics.de/wp-content/uploads/cropped-2003-logo-st-transparanet-x200-32x32.png</url>
	<title>farben &#8211; SystemTechnics</title>
	<link>https://www.systemtechnics.de</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Bash &#8211; farbige Ausgabe</title>
		<link>https://www.systemtechnics.de/bash-farbige-ausgabe/</link>
		
		<dc:creator><![CDATA[knut]]></dc:creator>
		<pubDate>Wed, 14 Oct 2015 17:25:56 +0000</pubDate>
				<category><![CDATA[Bash]]></category>
		<category><![CDATA[Linux/OSX]]></category>
		<category><![CDATA[ansi]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[farben]]></category>
		<guid isPermaLink="false">http://www.systemtechnics.de/?p=748</guid>

					<description><![CDATA[Auch in Bash-Skripten möchte man unter Umständen etwas farbig hervorheben. Mit ein paar Zeilen Code ist dies einfach zu bewerkstelligen. [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>Auch in Bash-Skripten möchte man unter Umständen etwas farbig hervorheben. Mit ein paar Zeilen Code ist dies einfach zu bewerkstelligen.</p>
<p><span id="more-748"></span></p>
<p>Beispiel:</p>
<pre><code>#!/bin/bash

NORMAL='\033[0;39m'
BLUE='\033[1;34m'
GREEN='\033[1;32m'
RED='\033[1;31m'

echo -e "$BLUE Ich schreibe in Blau, $GREEN kann auch in grün und $RED manchmal auch in rot schreiben. $NORMAL Gut?"</code></pre>
<p>Wichtig dabei ist das Leerzeichen hinter der &#8222;Farbvariablen&#8220;.</p>
<div class="uk-scope">
<div  uk-slideshow="animation: fade;autoplay: true ;autoplay-interval: 2500;min-height: 300">

    <div class="uk-position-relative uk-visible-toggle">

        <ul class="uk-slideshow-items " >
        
            <li>

                
                    
                        <img decoding="async" src="/wp-content/uploads/bash-bunt2.png" alt="Bash Farbige Ausgaben Editor" uk-cover>
                    
                    
                    
                
            </li>

        
            <li>

                
                    
                        <img decoding="async" src="/wp-content/uploads/bash-farbige-ausgaben-shell.png" alt="Bash Farbige Ausgaben Shell" uk-cover>
                    
                    
                    
                
            </li>

                </ul>

        
                <div class="uk-overlay uk-position-bottom">
            
<ul class="uk-dotnav uk-flex-center" uk-margin>
    <li uk-slideshow-item="0"><a href="#">Bash Farbige Ausgaben Editor</a></li>
    <li uk-slideshow-item="1"><a href="#">Bash Farbige Ausgaben Shell</a></li>
</ul>
        </div>
        
    </div>

    
</div>
</div>
<p>Zum Hintergrund:<br />
Eingeleitet wird eine solche ANSI Escape Sequenz immer mit der Zeichenfolge <em>\033[</em> oder in der Kurzform <em>\e</em> . Anschliessend kommen die Farben und am Ende ein <em>m</em> .</p>
<table class="uk-table uk-table-hover uk-table-striped uk-table-condensed">
<thead>
<tr>
<th>Farbe</th>
<th>ANSI-Code</th>
<th>Farbe</th>
<th>ANSI-Code</th>
</tr>
</thead>
<tbody>
<tr>
<td>Schwarz</td>
<td>\033[0;30m</td>
<td>Dunkelgrau</td>
<td>\033[1;30m</td>
</tr>
<tr>
<td>Rot</td>
<td>\033[0;31m</td>
<td>Hellrot</td>
<td>\033[1;31m</td>
</tr>
<tr>
<td>Grün</td>
<td>\033[0;32m</td>
<td>Hellgrün</td>
<td>\033[1;32m</td>
</tr>
<tr>
<td>Braun</td>
<td>\033[0;33m</td>
<td>Gelb</td>
<td>\033[1;33m</td>
</tr>
<tr>
<td>Blau</td>
<td>\033[0;34m</td>
<td>Hellblau</td>
<td>\033[1;34m</td>
</tr>
<tr>
<td>Lila</td>
<td>\033[0;35m</td>
<td>Helllila</td>
<td>\033[1;35m</td>
</tr>
<tr>
<td>Cyan</td>
<td>\033[0;36m</td>
<td>Hellcyan</td>
<td>\033[1;36m</td>
</tr>
<tr>
<td>Hellgrau</td>
<td>\033[0;37m</td>
<td>Weiß</td>
<td>\033[1;37m</td>
</tr>
</tbody>
</table>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
