Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <title></title>
- <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/xterm/2.9.2/xterm.css">
- <script src="https://cdnjs.cloudflare.com/ajax/libs/xterm/2.9.2/xterm.js"></script>
- <style type="text/css">
- #terminal2 {
- width: 500px;
- }
- </style>
- <script>
- window.onload = function(){
- var term = new Terminal();
- var tt = document.getElementById('terminal2')
- term.open(tt);
- term.write('Hello from 33[1;3;31mxterm.js 33[0m $ ')
- }
- </script>
- </head>
- <body>
- <div>
- <div id="terminal2"></div>
- <div>
- </body>
- </html>
Add Comment
Please, Sign In to add comment