fixed bug in term.write() that caused issues with writing long strings. could have sworn I tested this and it worked once... was probably before I added word wrapping. anyway, closes #61