func (t *Terminal) Output(limit int) string {
	buff := t.written.Bytes()
	if len(buff) > limit {
		buff = buff[:limit]
	}
	// clean up white space for easier comparison:
	return strings.TrimSpace(string(buff))
}
// Output returns a number of first 'limit' bytes printed into this fake terminal
Output returns a number of first 'limit' bytes printed into this fake terminal
// Output returns a number of first ' limit ' bytes printed into this fake terminal
func (t *Terminal) Output(limit int) string {
	buff := t.written.Bytes()
	if len(buff) > limit {
		buff = buff[:limit]
	}
	return strings.TrimSpace(string(buff))
}
func ( t * Terminal ) Output ( limit int ) string { buff := t . written . Bytes ( ) if len ( buff ) > limit { buff = buff [ : limit ] } return strings . TrimSpace ( string ( buff ) ) }
Output returns a number of first 'limit' bytes printed into this fake terminal
Output returns a number of first ' limit ' bytes printed into this fake terminal
// clean up white space for easier comparison: