How can we make jquery terminal screen adjustable?

453 views Asked by At

I am using jquery terminal to run commands in my project, in that I want to make its screen adjustable, I am unable to do that, can anybody help me?

1

There are 1 answers

3
jcubic On BEST ANSWER

You can create jQuery Terminal inside jQuery UI dialog or maybe use resizable from jQuery UI

<div class="wrapper">
    <div class="term"></div>
</div>

$('.wrapper').resizable();
$('.term').terminal();

.wrapper {
    width: 400px;
    height: 200px;
}
.term {
    height: 100%;
}

codepen demo