just a tiny change, if you are using the demo file as example to start working with, prompt as variable might cause trouble if you do use prompt() rather use shellprompt as variable name instead of prompt. I'd suggest to rename term's prompt() as well to not cause confusion.
Implemented fit method for Terminal objects, which:
- Fits the terminal's columns to its parent element width
- Fits the terminal's rows to its parent element height