<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress.com" -->
<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/"
	>

<channel>
	<title>xterm &amp;laquo; WordPress.com Tag Feed</title>
	<link>http://wordpress.com/tag/xterm/</link>
	<description>Feed of posts on WordPress.com tagged "xterm"</description>
	<pubDate>Fri, 18 Jul 2008 20:28:43 +0000</pubDate>

	<generator>http://wordpress.com/tags/</generator>
	<language>en</language>

<item>
<title><![CDATA[xterm &amp; alt [2]]]></title>
<link>http://loquehumaine.wordpress.com/?p=38</link>
<pubDate>Fri, 18 Jul 2008 09:32:41 +0000</pubDate>
<dc:creator>loquehumaine</dc:creator>
<guid>http://loquehumaine.wordpress.com/?p=38</guid>
<description><![CDATA[Remember my post on alt and xterm ?
Well, I have the solution now =)
&#8212;
Vous vous souvenez de m]]></description>
<content:encoded><![CDATA[<p>Remember my post on <a href="http://loquehumaine.wordpress.com/2008/07/10/xterm-altxterm-alt/">alt and xterm</a> ?</p>
<p>Well, I have the solution now =)</p>
<p>---</p>
<p>Vous vous souvenez de mon billet sur <a href="http://loquehumaine.wordpress.com/2008/07/10/xterm-altxterm-alt/">alt et xterm</a> ?</p>
<p>Et bien j'ai la solution ! =)</p>
<p><!--more--></p>
<p>If you search for altsendsescape on the web, you will find a lot of solutions, saying that you have to edit your .Xdefault or .Xresources with something like:<br />
XTerm*altSendsEscape: true <br />
or *VT100*altSendsEscape: 1</p>
<p>I'm sure they are all good, but none were working with me: altSendsEscape wasn't checked in the menu... So I went for XTerm*metaSendsEscape: true and this, it was checked. But I had to do a little trick to be able to type alt+. correctly. Also add in .Xdefault:<br />
XTerm*eightBitInput: false</p>
<p>I still don't know why, but it works now =)</p>
<p>---</p>
<p>Si vous cherchez altsendsescape sur le net, il y a plein de solutions, disant qu'il faut éditer son .Xdefault ou son .Xresources avec quelque chose gu genre :<br />
XTerm*altSendsEscape: true <br />
ou *VT100*altSendsEscape: 1 </p>
<p>Je suis sûr que tous marchent bien, mais aucun ne marchait pour moi : altSendsEscape n'était pas coché dans le menu menu... Du coup je suis allé pour XTerm*metaSendsEscape: true et ça, c'était bien coché. Mais j'ai dû ajouter une petite ligne en plus dans .Xdefault pour pouvoir faire alt+. :<br />
XTerm*eightBitInput: false</p>
<p>Je ne sais toujours pas pourquoi, mais ça marche =)</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[xterm &amp; alt]]></title>
<link>http://loquehumaine.wordpress.com/?p=28</link>
<pubDate>Thu, 10 Jul 2008 09:51:00 +0000</pubDate>
<dc:creator>loquehumaine</dc:creator>
<guid>http://loquehumaine.wordpress.com/?p=28</guid>
<description><![CDATA[おひさしぶり (ohisashiburi: long time no see) !!
Again, as a reminder, because I spend so much]]></description>
<content:encoded><![CDATA[<p>おひさしぶり (ohisashiburi: long time no see) !!</p>
<p>Again, as a reminder, because I spend so much time to find the solution which was simple, modifying my .inputrc, .bashrc, ...</p>
<p>When you hit for example alt+. in a terminal, you should have the last argument of the last command.<br />
In my xterm, it didn't work and I had to hit Esc then . (I know, it's not so terrible, but habits...).</p>
<p>What should you do to <em>map</em> alt to meta ? Press Ctrl, then left-click in the terminal and choose “alt sends escape”...</p>
<p>Now, I will try to find how to save this behaviour to be the default one ;)</p>
<p>---</p>
<p>おひさしぶり (ohisashiburi : ça fait un bail) !!</p>
<p>Encore un pense-bête parce que j'ai passé tellement de temps pour trouver la solution qui est tellement simple, à réécrire mes .inputrc, .bashrc...</p>
<p>Quand on tape par exemple alt+. dans un terminal, on doit avoir le dernier argument de la dernière commande.<br />
Dans mon xterm, ça ne marchait pas et je devais utiliser Esc puis . (pas si compliqué que ça, mais les habitudes...).</p>
<p>Que faire pour <em>mapper</em> alt à meta ? Appuyer sur Ctrl, puis clic gauche dans le terminal et choisir « alt sends escape » ...</p>
<p>Maintenant, il me reste à trouver comment sauver ça par défaut ;)</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Xterm configuration]]></title>
<link>http://firmit.wordpress.com/?p=21</link>
<pubDate>Thu, 01 May 2008 20:14:18 +0000</pubDate>
<dc:creator>firmit</dc:creator>
<guid>http://firmit.wordpress.com/?p=21</guid>
<description><![CDATA[The most usefull post: howto configure &#8216;xterm&#8217;.
]]></description>
<content:encoded><![CDATA[<p>The most usefull post: <a href="http://linuxhelp.blogspot.com/2005/10/configuring-xterm-in-linux.html" target="_blank">howto configure 'xterm'</a>.</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Vista, Cygwin, MingW: xterm fails to startup]]></title>
<link>http://aabrahamowicz.wordpress.com/?p=49</link>
<pubDate>Wed, 05 Mar 2008 20:00:29 +0000</pubDate>
<dc:creator>aabrahamowicz</dc:creator>
<guid>http://aabrahamowicz.wordpress.com/?p=49</guid>
<description><![CDATA[I personally prefer working in xterm windows to the default command prompt shell that Windows provid]]></description>
<content:encoded><![CDATA[<p>I personally prefer working in xterm windows to the default command prompt shell that Windows provides - the ability to easily copy and paste and also to resize the window I find very useful.</p>
<p>This isn't a solution I came up with, but I did have to search through a few web pages before finding a set of steps that would work -- the credit really goes to all those, especially this post on the cygwin mailing lists: http://cygwin.com/ml/cygwin-xfree/2007-03/msg00011.html</p>
<p>If you've installed Cygwin and MingW (X Server), and try to get an xterm to show up, but are having either no luck or only occasional luck and the following error</p>
<blockquote>
<pre style="margin:0;">45 [main] xterm 2240 child_copy: linked dll data write copy failed,
0x3AB0
0..0x3AB440, done 0, windows pid 2356, Win32 error 487
xterm: Error 29, errno 11: Resource temporarily unavailable
Reason: spawn: fork() failed</pre>
</blockquote>
<p>The solution is to use the rebase package that Cygwin installs.  As the post above reads, error 487 is a classic indicator of a DLL address space collision.</p>
<p>From the rebase README:</p>
<p>1. shutdown all Cygwin processes and services<br />
2. start ash (do not use bash or rxvt)<br />
3. execute /bin/rebaseall (in the ash window)</p>
<p>After that, you should be able to run xterm.  Don't forget to set your DISPLAY variable (usually, something like DISPLAY=localhost:0.0).  I do recommend reading the above post for additional background, and the rebase README -- but these are your quick steps to recovery.</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Snapshots of a Window]]></title>
<link>http://crayondev.wordpress.com/2008/01/07/snapshots-of-a-window/</link>
<pubDate>Tue, 08 Jan 2008 01:01:48 +0000</pubDate>
<dc:creator>linuxcrayon</dc:creator>
<guid>http://crayondev.wordpress.com/2008/01/07/snapshots-of-a-window/</guid>
<description><![CDATA[Early yesterday, I developed a BASH script I didn&#8217;t honestly intend on writing.  It came about]]></description>
<content:encoded><![CDATA[<p>Early yesterday, I developed a BASH script I didn't honestly intend on writing.  It came about as a result of my <a href="../../06/custom-terminal-display/">tutorial on how to change and customize your BASH shell prompt.</a>  I had always just used <code>ksnapshot</code> and then edited the snapshots.  This created inconsistencies and quite often ugly output around the edges.  So I went searching for another way.</p>
<p>What I discovered was <code>xwd</code> and <code>ImageMagick</code>.  I was able to easily write a one line mini-script to take shots of single windows; however, the limitations of such an implementation were evident.</p>
<p>First, it would not be something for an everyday, average user.  Second, there was no method of error reporting.  Of course, the only real errors possible with something like this are missing dependencies, and while this script does not (currently) check specifically for the utilities it relies on, it does give an error, and generally any error from this script means missing dependencies.  Third, there was no command-line argument support.  Fourth, there was no usage documentation or help.</p>
<p>So I decided to write the script again, this time with these limitations in mind.  There are still several limitations, such as the inability to check for specific dependencies, but those features will make it in with time.</p>
<p>You can visit the project's page <a href="../../../../projects/windowshot">here on my WordPress site.</a></p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Custom Terminal Display!]]></title>
<link>http://crayondev.wordpress.com/2008/01/06/custom-terminal-display/</link>
<pubDate>Sun, 06 Jan 2008 21:36:43 +0000</pubDate>
<dc:creator>linuxcrayon</dc:creator>
<guid>http://crayondev.wordpress.com/2008/01/06/custom-terminal-display/</guid>
<description><![CDATA[A few days ago I was asked to show a friend how I edited my shell prompt.  You can see it to the lef]]></description>
<content:encoded><![CDATA[<p><a href='http://crayondev.wordpress.com/files/2008/01/shell.jpg' title='Custom Shell'><img src='http://crayondev.wordpress.com/files/2008/01/shell.thumbnail.jpg' alt='Custom Shell' align='left' /></a>A few days ago I was asked to show a friend how I edited my shell prompt.  You can see it to the left.  It's not the greatest out there, but I think it's fairly interesting.  So how is it done?  Well, it's fairly simple, really!  Read on, my friend.<br />
</p>
<h2>Features</h2>
<p>The features of the shell prompt are important to note.  I had a specific goal: I wanted to display my system information in a friendly manner.  Simple, huh?  So here's a break down!</p>
<ul>
<li>Display System Information</li>
<li>Create a container to go around the system information</li>
<li>Format the text of the system information to be visually appealing</li>
<li>Use various colors to differentiate the various parts of the system information</li>
<li>Color code the actual prompt to make identifying information easier</li>
</ul>
<p>
Pretty basic, huh?  It's not a very large feature list, but since I decided to tackle this as my first BASH experience (as far as scripting goes), it quickly became a behemoth project that took around two to three hours to figure out.  Resources were few and far in between, and those that existed typically didn't have exactly the information I needed.</p>
<h2>Download</h2>
<p>First, you can download my .bashrc file if you simply want the exact same thing that I use without doing it yourself, or if you just want a starting place.  <a href="http://crayondev.fateback.com/.bashrc">Grab it here.</a></p>
<h2>Colors, Colors Everywhere!</h2>
<p>Bash actually has a small number of colors.  It's pretty limited.  And for some reason, the escape sequences for the prompt and for BASH itself are different.  I'm not sure why, and I never did find a resource that told me this.  I spent most of my time developing this on figuring out that difference.  A table of the proper color codes follows.</p>
<pre>
Black       0;30     Dark Gray     1;30
Blue        0;34     Light Blue    1;34
Green       0;32     Light Green   1;32
Cyan        0;36     Light Cyan    1;36
Red         0;31     Light Red     1;31
Purple      0;35     Light Purple  1;35
Brown       0;33     Yellow        1;33
Light Gray  0;37     White         1;37
</pre>
<p>Now, if you open up my <code>.bashrc</code> file, you'll notice that I don't just use the codes alone.  They require special escape sequences to surround them to tell BASH that they're non-printing.  The characters are <code>\[33[</code> and <code>\]</code>.  So, between those two, you insert your color code.  Then, follow it with an <code>m</code>.  The <code>m</code> is for colors only.  If you wanted purple, for example, it would be <code>\[33[0;35m\]</code>.</p>
<p>Now that you understand how to CREATE the colors, it's time to plug them in!  We're only working on the prompt right now; the system information will come later.</p>
<h2>The BASH Prompt</h2>
<p>If you don't have the variable <code>PS1</code> in your <code>.bashrc</code> file, create it at the bottom now.  Remember that this is Linux, and everything is case sensitive.  PS1 is, more or less, what your shell prompt looks like.  It's important to set up a few basics immediately.  First, you'll want your username displayed, or so I would imagine.  So bring your <code>PS1</code> variable to look like this:</p>
<pre>
PS1="\u"
</pre>
</p>
<p>This simply tells BASH to display your username.  Not very effective, and if you were to save, exit, and restart your terminal, it would be pretty ugly and confusing.  So let's add a little separation.  Change <code>PS1</code> to mirror the following code:</p>
<pre>
PS1="[ \u ]$ "
</pre>
</p>
<p>This will display your username again, this time enclosed by square brackets, then followed by the <code>$</code> symbol.  We use this symbol to help differentiate between a normal user and root.  You can use whatever symbol you'd like (if you even want a symbol), but the dollar sign is used as convention.  It's still not very interesting though, is it?  Next, we're going to tackle something very common and important.  What if you use multiple Linux systems?  It's not an issue if you're physically at the machine; chances are you know which one it is.  Sometimes, though, if you're in a lab, you might not.  I certainly wouldn't.  So it's important to have the hostname of the machine displayed also.  To separate the username from the hostname, I'm going to use the <code>@</code> symbol, again because it is fairly standard.  So now change your <code>PS1</code> variable to read like mine:</p>
<pre>
PS1="[ \u@\h ]$ "
</pre>
</p>
<p>Now the problem is that you're not sure which directory you're in.  You have two options here: the full directory (<code>\w</code>) or the current base directory only (<code>\W</code>).  If you can't tell the difference, the full directory is a lower-case <code>w</code> and the current base directory is an upper-case <code>W</code>.  I'll leave this up to you.  Place it wherever you'd like.</p>
<p>Now for colors.  Remember color codes have to be enclosed with special characters: <code>\[33[</code> and <code>\]</code>.  So if you want the information about which user is using the shell, the hostname, and the base directory to be purple and all of the commands entered to be cyan, you could do the following:</p>
<pre>
PS1="\[33[0;35m\][ \u@\h W ]$ \[33[0;36m\]"
</pre>
</p>
<p>Those are terrible colors, but you get the idea.  Another idea is to put the color codes into variables, as I have done.  They're descriptive and aid in reuse if you want to use more colors.  Play around with things a bit.  There are more prompt escape sequences to display different information, but I'm not going to list them all; <a href="http://google.com/linux">Google is your friend!</a></p>
<h2>Displaying System Information</h2>
<p>This is only going to cover how to actually display the information; formatting it and coloring it is up to you.</p>
<p>Displaying the information is fairly simple.  Store commands in variables.  The basic syntax to do this is:</p>
<pre>
variable_name="$(command_name)";
</pre>
</p>
<p>Note the <code>$()</code> that must surround your command.  There is another syntactical option, but it's messy and confusing so I won't show it.  This method of enclosing your commands is used very often in BASH, so commit it to memory if you plan on doing further BASH work.</p>
<p>Some basic commands to grab system information are <code>id -un, id -u, uname -r, </code> and <code>cat /etc/issue</code>.  Anything more advanced is up to you.  Discovering what the aforementioned commands is also up to you; if you don't do it, you won't learn it!</p>
<p>Now you should note that the escape sequences required to show color for the prompt are not the same as they are for actual BASH output.  So what needs to enclose the color codes for simple BASH output?  <code>33[</code>.  That's it.  And it only goes at the beginning.  MUCH easier.</p>
<h2>The End</h2>
<p>That's it!  I hope it's helped you at least a little.  If you have any questions, let me know!</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[.Xdefaults]]></title>
<link>http://m0rphs.wordpress.com/2007/12/21/xdefaults/</link>
<pubDate>Fri, 21 Dec 2007 14:08:51 +0000</pubDate>
<dc:creator>morphex</dc:creator>
<guid>http://m0rphs.wordpress.com/2007/12/21/xdefaults/</guid>
<description><![CDATA[These are my .Xdefaults that are for xterm.

!Colors
! Black
*color0: #5A5A5A
*color8: #3e3e3e
! Red]]></description>
<content:encoded><![CDATA[<p>These are my .Xdefaults that are for xterm.<br />
<code><br />
!Colors<br />
! Black<br />
*color0: #5A5A5A<br />
*color8: #3e3e3e<br />
! Red<br />
*color1: #FF4747<br />
*color9: #FF6767<br />
! Green<br />
*color2: #AFC81C<br />
*color10: #bFC81C<br />
! Yellow<br />
*color3: #FDD338<br />
*color11: #F4D461<br />
! Blue<br />
*color4: #619AF4<br />
*color12: #5496FF<br />
! Purple<br />
*color5: #5F5A90<br />
*color13: #826AB1<br />
! Cyan<br />
*color6: #47E0FF<br />
*color14: #2ED9FB<br />
! White<br />
*color7: #FFFFFF<br />
*color15: #DEDEDE</p>
<p>!xterm settings<br />
xterm*background: #333333<br />
xterm*foreground: #efefcf<br />
xterm*dynamicColors: true<br />
!xterm*utf8: 2<br />
xterm*eightBitInput: true<br />
xterm*saveLines: 32767<br />
xterm*scrollTtyKeypress:true<br />
xterm*scrollTtyOutput: false<br />
xterm*scrollBar: false<br />
xterm*loginShell: true<br />
xterm*faceName: Bitstream Vera Sans Mono:pixelsize=12<br />
xterm*jumpScroll: true<br />
xterm*multiScroll: true<br />
xterm*toolBar: false</p>
<p>Xcursor.theme: DMZ<br />
Xcursor.size: 24<br />
</code></p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[x-tip eod #113: X11 xterm anpassen]]></title>
<link>http://one59.wordpress.com/2007/11/07/x-tip-eod-113-x11-xterm-anpassen/</link>
<pubDate>Tue, 06 Nov 2007 21:59:41 +0000</pubDate>
<dc:creator>David</dc:creator>
<guid>http://one59.wordpress.com/2007/11/07/x-tip-eod-113-x11-xterm-anpassen/</guid>
<description><![CDATA[Wem die default Fenstereinstellung des xterm Fensters zu klein ist oder sonstige nette Spielereien v]]></description>
<content:encoded><![CDATA[<p>Wem die default Fenstereinstellung des xterm Fensters zu klein ist oder sonstige nette Spielereien vermisst:</p>
<p>Wir schauen in die Manpage von xterm <code>man xterm</code> und gucken uns die Möglichkeiten an:<br />
<code>man xterm</code></p>
<p>Unser neues xterm soll größer...</p>
<p><code>-fn 10x20 -geometry 150x50</code></p>
<p>...schöner...</p>
<p><code>-bg black -fg white</code></p>
<p>...mit Scrollbar und mehr Inhalt...</p>
<p><code>-sb -sl 1000</code></p>
<p>...und visuellem Feedback erscheinen:</p>
<p><code>-vb</code></p>
<p>Voila:</p>
<p><code>xterm -fn 10x20 -geometry 150x50 -bg black -fg white -sb -sl 1000 -vb</code></p>
<p>Zugegeben ist die font size doch ein bisschen groß geraten. Ich bleibe beim default :)</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Personalizando o Xterm]]></title>
<link>http://debdicas.wordpress.com/2007/10/12/personalizando-o-xterm/</link>
<pubDate>Sat, 13 Oct 2007 02:05:02 +0000</pubDate>
<dc:creator>Bruno Tsubouchi Yporti</dc:creator>
<guid>http://debdicas.wordpress.com/2007/10/12/personalizando-o-xterm/</guid>
<description><![CDATA[
Há muito tempo eu evitava ao máximo usar o Xterm (emulador de terminal do X) por causa de sua apa]]></description>
<content:encoded><![CDATA[<div style="text-align:justify;">
<p>Há muito tempo eu evitava ao máximo usar o <strong>Xterm</strong> (emulador de terminal do X) por causa de sua aparência, principalmente pelas fontes pequenas e serrilhadas. Recentemente, tive alguns problemas com o <em>XFCE Terminal</em> no <em>Debian SID</em> e tive que apelar para o <strong>Xterm</strong>. Como estou com tempo disponível, fui procurar algumas dicas para torná-lo mais apresentável.</p>
<p>Em alguns segundos achei um excelente artigo da <a href="http://www.linuxbsd.com.br/portal/" target="_blank">Comunidade LinuxBSD</a> falando sobre personalização do <strong>Xterm</strong>, incluindo alterações no tamanho das fontes, cores e a tão bela suavização de fontes. Para quem quer conferir o artigo, siga <a href="http://www.linuxbsd.com.br/portal/?q=node/80" target="_blank">este apontador</a>.</p>
<p>Não tem abas nem recursos muito avançados, mas o resultado é muito bom:</p>
<p><a href="http://img373.imageshack.us/img373/9254/xtermcu4.png" target="_blank"><img src="http://img373.imageshack.us/img373/9254/xtermcu4.th.png" alt="Xterm com suavização de fontes" /></a></p>
<p>:~)</p>
<p style="text-align:right;"><a href="http://www.debian.org/" target="_blank" title="Entrada publicada usando o Debian GNU/Linux"><strong>Do Debian Etch</strong></a></p>
</div>
]]></content:encoded>
</item>

</channel>
</rss>
