ponysay/pages/ponysay/Running-on-screen.html
Mattias Andrée afeec9cc24 first scratch
2012-10-25 06:28:13 +02:00

68 lines
3.3 KiB
HTML

<html lang="en">
<head>
<title>Running on screen - Ponysay</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="description" content="Ponysay">
<meta name="generator" content="makeinfo 4.13">
<link title="Top" rel="start" href="index.html#Top">
<link rel="up" href="Advanced-usage.html#Advanced-usage" title="Advanced usage">
<link rel="prev" href="Running-on-TTY.html#Running-on-TTY" title="Running on TTY">
<link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
<!--
This manual is for ponysay
(version 2.9),
Copyright (C) 2012 Mattias Andrée
Permission is granted to copy, distribute and/or modify this
document under the terms of the GNU Free Documentation License,
Version 1.3 or any later version published by the Free Software
Foundation; with no Invariant Sections, with no Front-Cover Texts,
and with no Back-Cover Texts. A copy of the license is included in
the section entitled ``GNU Free Documentation License''.
-->
<meta http-equiv="Content-Style-Type" content="text/css">
<style type="text/css"><!--
pre.display { font-family:inherit }
pre.format { font-family:inherit }
pre.smalldisplay { font-family:inherit; font-size:smaller }
pre.smallformat { font-family:inherit; font-size:smaller }
pre.smallexample { font-size:smaller }
pre.smalllisp { font-size:smaller }
span.sc { font-variant:small-caps }
span.roman { font-family:serif; font-weight:normal; }
span.sansserif { font-family:sans-serif; font-weight:normal; }
--></style>
</head>
<body>
<div class="node">
<a name="Running-on-screen"></a>
<p>
Previous:&nbsp;<a rel="previous" accesskey="p" href="Running-on-TTY.html#Running-on-TTY">Running on TTY</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="Advanced-usage.html#Advanced-usage">Advanced usage</a>
<hr>
</div>
<h3 class="section">3.5 Running on <samp><span class="command">screen</span></samp></h3>
<p><a name="index-g_t_0040command_007bscreen_007d-107"></a><a name="index-g_t_0040file_007b_002ebashrc_007d-108"></a><a name="index-g_t_0040file_007b_007e_002f_002ebashrc_007d-109"></a>
<samp><span class="command">screen</span></samp> will adapt ANSI colour escape sequences to your terminal's
capabilities. This means that if your terminal reports itself as <code>xterm</code>
in <samp><span class="env">$TERM</span></samp> ponies will lose their colours; they will only use the lower 16
colours instead of the top 240 colours. By default, almost all X terminals,
including <samp><span class="command">xterm</span></samp> and <samp><span class="command">mate-terminal</span></samp> reports themselves as
<code>xterm</code> in <samp><span class="env">$TERM</span></samp>, and some reports their actual name in <samp><span class="env">$COLORTERM</span></samp>.
So before opening <samp><span class="command">screen</span></samp> you use set <samp><span class="env">$TERM</span></samp> to <code>xterm-256color</code>,
if you are using a terminal with support for <code>xterm</code>'s 256 colours; this
can be done by adding to your <samp><span class="file">~/.bashrc</span></samp>:
<p><table class="cartouche" summary="cartouche" border="1"><tr><td>
<pre class="example"> [ "$TERM" = "xterm" ] &amp;&amp;
function screen
{ export TERM="xterm-256color"
exec screen "$@"
}
</pre>
</td></tr></table>
</body></html>