Skip to content

ability to change parentElement of a terminal instead of document.body#52

Open
jedi4ever wants to merge 1 commit intochjj:masterfrom
jedi4ever:parent-element-for-terminal
Open

ability to change parentElement of a terminal instead of document.body#52
jedi4ever wants to merge 1 commit intochjj:masterfrom
jedi4ever:parent-element-for-terminal

Conversation

@jedi4ever
Copy link

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();

@lyrixx
Copy link

lyrixx commented Mar 11, 2013

👍

@risacher
Copy link

risacher commented Dec 7, 2013

This feature is in the current codebase by setting options.parent or options.body.
Recommend closing this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants