cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

Code Indentation


Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

              <pre>Simple Terminal using only cmd plugin from jQuery Terminal</pre>
<div id="some_id"></div>

              body {
  min-height: 100vh;
  color: var(--color, #aaa);
  background-color: var(--background, #000);
  padding: 10px;
  box-sizing: border-box;
  --color: lime;
pre, body {
  margin: 0;
  margin: 0;
pre, .cmd {
  line-height: 14px;
  font-size: 12px;
              // for browsers that don't support key property
var pre = $('pre');
var scroll_object = $('body').scroll_element();
function scroll_to_bottom() {
  var sHeight = scroll_object.prop('scrollHeight');

  prompt: '> ',
  width: '100%',
  commands: function(command) {
    var html = pre.html();
    if (html) { html += '\n'; }
    var message = "you've typed " + 
        "<span style=\"color:white\">" + command +
    pre.html(html + '> ' + command + '\n' + message);
Loading ..................