Skip to content
Permalink
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
<html>
<head>
<style type="text/css">
html, body {
background-color: #000;
color: #fff;
}
#xterm_input {
font-family: 'Courier New';
}
</style>
<script type="text/javascript">
function convert() {
var xtermInput = document.getElementById('xterm_input');
var xtermOutput = document.getElementById('xterm_output');
xtermOutput.innerHTML = xtermInput.value;
formatXtermWidgets();
}
</script>
</head>
<body>
<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.
</code>
<h2>Give it a try!</h2>
<h3>Your Input</h3>
<textarea id="xterm_input" cols="80" rows="20" onInput="convert();"></textarea>
<h3>Output</h3>
<code id="xterm_output" class="xterm"></code>
<script type="text/javascript" src="xterm.js"></script>
</body>
</html>
You can’t perform that action at this time.