<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Module: VT100Codes</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
<script type="text/javascript">
// <![CDATA[
function popupCode( url ) {
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
}
function toggleCode( id ) {
if ( document.getElementById )
elem = document.getElementById( id );
else if ( document.all )
elem = eval( "document.all." + id );
else
return false;
elemStyle = elem.style;
if ( elemStyle.display != "block" ) {
elemStyle.display = "block"
} else {
elemStyle.display = "none"
}
return true;
}
// Make codeblocks hidden by default
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
// ]]>
</script>
</head>
<body>
<div id="classHeader">
<table class="header-table">
<tr class="top-aligned-row">
<td><strong>Module</strong></td>
<td class="class-name-in-header">VT100Codes</td>
</tr>
<tr class="top-aligned-row">
<td><strong>In:</strong></td>
<td>
<a href="../files/lib/network/protocol/vt100codes_rb.html">
lib/network/protocol/vt100codes.rb
</a>
<br />
</td>
</tr>
</table>
</div>
<!-- banner header -->
<div id="bodyContent">
<div id="contextContent">
<div id="diagram">
<map id="map" name="map">
<area shape="rect" coords="16,16,109,65" href="VT100Codes.html" alt="VT100Codes
" />
</map>
<img src="../dot/f_38.png" usemap="#map" border="0" alt="dot/f_38.png">
</div>
<div id="description">
<p>
This module contains the contants used for Telnet
</p>
</div>
</div>
</div>
<!-- if includes -->
<div id="section">
<div id="constants-list">
<h3 class="section-bar">Constants</h3>
<div class="name-list">
<table summary="Constants">
<tr class="top-aligned-row context-row">
<td class="context-item-name">CSI</td>
<td>=</td>
<td class="context-item-value">"\e["</td>
</tr>
<tr class="top-aligned-row context-row">
<td class="context-item-name">SGR2CODE</td>
<td>=</td>
<td class="context-item-value">{ "0", "[RESET]", "1", "[B]", "2", "[D]", "4", "[U]",
"5", "[BLINK]", "7", "[I]", "8", "[HIDDEN]",
"30", "[COLOR Black]", "31", "[COLOR Red]",
"32", "[COLOR Green]", "33", "[COLOR Yellow]",
"34", "[COLOR Blue]", "35", "[COLOR Magenta]",
"36", "[COLOR Cyan]", "37", "[COLOR White]",
"40", "[COLOR=bgblack]", "41", "[COLOR=bgred]",
"42", "[COLOR=bggreen]", "43", "[COLOR=bgyellow]",
"44", "[COLOR=bgblue]", "45", "[COLOR=bgmagenta]",
"46", "[COLOR=bgcyan]", "47", "[COLOR=bgwhite]" }</td>
</tr>
<tr class="top-aligned-row context-row">
<td class="context-item-name">VTKeys</td>
<td>=</td>
<td class="context-item-value">{ /\[SCROLLDOWN\]/mi, "\eD",
/\[SCROLLUP\]/mi, "\eM",
/\[UP (\d+)?\]/mi, "\e$A", /\[DOWN (\d+)?\]/mi, "\e$B",
/\[RIGHT (\d+)?\]/mi, "\e$C", /\[LEFT (\d+)?\]/mi, "\e$D",
/\[CURSAVE\]/mi, "\e7", /\[CURREST\]/mi, "\e8",
/\[RESET\]/mi, "\ec",
/\[TAB\]/mi, "\t", /\[BELL\]/mi, "\a", /\[BS\]/mi, "\b",
/\[POS (\d+)\]/mi, CSI+"$G",
/\[HOME (\d+)?,(\d+)?\]/mi, CSI+"$;$H",
/\[CURSOR (\d+)?,(\d+)?\]/mi, CSI+"$;$R",
/\[SCRREG (\d+)?,(\d+)?\]/mi, CSI+"$;$r",
/\[SCRRESET\]/mi, CSI+"r",
/\[CLEAR\]/mi, CSI+"2J", /\[CURREPT\]/mi, CSI+"6n",
/\[CLEARLINE\]/mi, CSI+"2K",
/\[INSERT\]/mi, CSI+"2~", /\[END\]/mi, CSI+"8~",
/\[PAGEUP\]/mi, CSI+"5~", /\[PAGEDOWN\]/mi, CSI+"6~",
/\[F1\]/mi, CSI+"11~", /\[F2\]/mi, CSI+"12~",
/\[F3\]/mi, CSI+"13~", /\[F4\]/mi, CSI+"14~",
/\[F5\]/mi, CSI+"15~", /\[F6\]/mi, CSI+"17~",
/\[F7\]/mi, CSI+"18~", /\[F8\]/mi, CSI+"19~",
/\[F9\]/mi, CSI+"20~", /\[F10\]/mi, CSI+"21~" }</td>
</tr>
</table>
</div>
</div>
<!-- if method_list -->
</div>
<div id="validator-badges">
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
</div>
</body>
</html>