50537

How do I force jquery terminal to remain the same size?

I am using Jquery terminal and it seems pretty cool. I've been looking around for several hours now, and I can't find a way to get the console to remain stationary when text is inputted.

Instead, the console increases in size for every line of input that I enter. Does anyone know how to keep a constant size for the terminal, is it a setting I missed or something? I want something like this.

Answer1:

Add a height option:

JS

$('#terminal').terminal(function (command, term) { if (command == 'test') { term.echo("you just typed 'test'"); } else { term.echo('unknown command'); } }, { prompt: '>', name: 'test', height: 200 });

Demo: http://jsfiddle.net/11o3spLd/

Recommend

  • How to change selected attribute via javascript
  • Checking for double email addresses which are encrypted in the database
  • Textarea in IE8 Newline issue
  • Inputting a character value into an int array? [duplicate]
  • How to make a real-time jquery effect?
  • How can I stop the scrollbar from displacing my page?
  • Is in C# List something like vector.reserve(n) in C++
  • How to write string.Contains(someText) in expression Tree
  • What do I do with this error when I run tests in rails?
  • (Tcl/Expect) clear screen after exit
  • Scanner nextInt() and hasNextInt() problems
  • C# - Most efficient way to iterate through multiple arrays/list
  • netsh acl setting (need alternative method - registry settings?)
  • jQuery: How to AJAXify WordPress Search?
  • NUnit 3.0 TestCase const custom object arguments
  • Trying to get the char code of ENTER key
  • How to assign byte[] as a pointer in C#
  • Remove final comma from string in vb.net
  • WPF - CanExecute dosn't fire when raising Commands from a UserControl
  • Time complexity of a program which involves multiple variables
  • Change multiple background-images with jQuery
  • Java Scanner input dilemma. Automatically inputs without allowing user to type
  • Using $this when not in object context
  • Android screen density dpi vs ppi
  • How do I fake an specific browser client when using Java's Net library?
  • How reduce the height of an mschart by breaking up the y-axis
  • DirectX11 ClearRenderTargetViewback with transparent buffer?
  • MySQL WHERE-condition in procedure ignored
  • Perl system calls when running as another user using sudo
  • 'TypeError' while using NSGA2 to solve Multi-objective prob. from pyopt-sparse in OpenMDAO
  • Change an a tag attribute in JavaScript based on screen width
  • what is the difference between the asp.net mvc application and asp.net web application
  • Web-crawler for facebook in python
  • Matrix multiplication with MKL
  • trying to dynamically update Highchart column chart but series undefined
  • python regex in pyparsing
  • How get height of the a view with gone visibility and height defined as wrap_content in xml?
  • Linking SubReports Without LinkChild/LinkMaster
  • Binding checkboxes to object values in AngularJs
  • java string with new operator and a literal