chjj/tty.js — pull request #52 by jedi4ever (2012-11-07 10:44:25+00:00)
Title: ability to change parentElement of a terminal instead of document.body

By default terminals get appended to the bottom of document.body.

By setting the parentElement of the terminal before the open, you can control the position where the code gets inserted.

``var term = new Terminal(80, 24);
term.parentElement = document.getElementById('terminal');
term.open(); ``