jcubic / jquery.terminal

jQuery Terminal Emulator - JavaScript library for creating web-based terminals with custom commands
https://terminal.jcubic.pl
MIT License
3.11k stars 569 forks source link

terminal::lines that return number of printed lines #966

Open jcubic opened 2 weeks ago

jcubic commented 2 weeks ago

I have an idea for a new feature for jQuery Terminal

There should be an API that return the number of lines printed on the terminal.

It should take outputLimit into account. The easiest is to just use jQuery find() to count the number of nodes, or maybe store the number of printed lines in a variable.