mirror of
https://github.com/erkin/ponysay.git
synced 2025-03-22 03:37:11 +01:00
62 lines
3 KiB
HTML
62 lines
3 KiB
HTML
<html lang="en">
|
|
<head>
|
|
<title>Printing in TTY with KMS - 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="Inner-workings.html#Inner-workings" title="Inner workings">
|
|
<link rel="prev" href="Balloon-style-files.html#Balloon-style-files" title="Balloon style files">
|
|
<link rel="next" href="Truncation.html#Truncation" title="Truncation">
|
|
<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="Printing-in-TTY-with-KMS"></a>
|
|
<p>
|
|
Next: <a rel="next" accesskey="n" href="Truncation.html#Truncation">Truncation</a>,
|
|
Previous: <a rel="previous" accesskey="p" href="Balloon-style-files.html#Balloon-style-files">Balloon style files</a>,
|
|
Up: <a rel="up" accesskey="u" href="Inner-workings.html#Inner-workings">Inner workings</a>
|
|
<hr>
|
|
</div>
|
|
|
|
<h3 class="section">10.4 Printing in TTY with KMS</h3>
|
|
|
|
<p><a name="index-tty-387"></a><a name="index-linux-vt-388"></a><a name="index-clearing-tty-389"></a><a name="index-kms-390"></a><a name="index-kernel-mode-setting-391"></a>
|
|
Since Linux VT (TTY) does not have capabilities for returning the position of the
|
|
cursor, the screen must always be cleared before printing the ponies to make sure
|
|
the pony's colours is not lost, i.e. reduced to mare 16 colours, during print. The
|
|
colours are reduced if the pony's position on the screen is changed. This is only
|
|
relevant with KMS support. The clear the screen we print “<code>\e[H\e[2J</code>”
|
|
(<code>\e</code> is ESC) in at beginning. “<code>\e[H</code>” places the cursor at the
|
|
beginning of the screen, and “<code>\e[2J</code>” clears everything on the screen after,
|
|
and including at, the cursor. If we would use “<code>\ec</code>” (that is a reset),
|
|
we would also turn off num. lock and caps. lock.
|
|
|
|
</body></html>
|
|
|