c3ks/terminal.js — pull request #28 by jedi4ever (2013-05-08 16:18:54+00:00)
Title: resize test

I think the resize code is flawed.

a) if you have in your termBuffer:
````
line1
line2
line3
`````
and your cursor is on line3 then when you resize to (2,2) - it should have line2 & line3.
Currently it splices the top lines, instead of the bottom lines.

b) I think we also need to adapt the scrollregion when we make the terminal smaller
c) not sure what to do if we resize to a larger size. if the scrollregion has been explicitly set we might want to keep it. if it was the default (max screen), we could increase it.

food for thought.