Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
53 lines (41 sloc) 1.53 KB
<style type="text/css">
html, body {
background-color: #000;
color: #fff;
#xterm_input {
font-family: 'Courier New';
<script type="text/javascript">
function convert() {
var xtermInput = document.getElementById('xterm_input');
var xtermOutput = document.getElementById('xterm_output');
xtermOutput.innerHTML = xtermInput.value;
<h1>Live Demo of <code>xterm.js</code></h1>
<code class="xterm">
@g[1] Your flame @G<@W*><-:-><*@G> @YSLAUGHTERS @G<@W*><-:-><*@G>@w @gan antlion! @R[358]
@RAn antlion screams as the flames engulf it!!
@wYou receive @G68+7+@R7@w experience points.
@wYou receive @G82@w bonus experience points from your daily blessing.
@wYou have @Y71@w daily blessing bonus experience kills remaining.
@wYou get @Y6,790@w gold coins from the charred corpse of an antlion.
@MYou are taxed @Y67@M gold coins by your clan.
@wYou get an @ra@wn@rt@wl@ri@wo@rn @Y{@whusk@Y}@w from the charred corpse of an antlion.
@cThe Fallen Soldier gives you @Y62@c gold coins for the charred corpse of an antlion.
<h2>Give it a try!</h2>
<h3>Your Input</h3>
<textarea id="xterm_input" cols="80" rows="20" onInput="convert();"></textarea>
<code id="xterm_output" class="xterm"></code>
<script type="text/javascript" src="xterm.js"></script>
You can’t perform that action at this time.