jcubic/jquery.terminal — pull request #82 by hraban (2013-05-03 14:43:39+00:00)
Title: echo() accepts finalize function for container

allow user control over the output container div by calling finalize
function after every line draw eg:

term.echo("foo", function (x) { x.addClass('output1'); });

then you can do stuff like

$('.output1').toggle()

anyway thats what I use it for so I can toggle output belonging to different output generators dynamically

memory usage is not affected if no finalize function is supplied because a wrapper array is only created if there is one the exception is when echo() is called with an array then it must be wrapped