code: func NewTerminal(c io.ReadWriter, prompt string) *Terminal {
  	return &Terminal{
  		Escape:       &vt100EscapeCodes,
  		c:            c,
  		prompt:       []rune(prompt),
  		termWidth:    80,
  		termHeight:   24,
  		echo:         true,
  		historyIndex: -1,
  	}
  }
docs: // NewTerminal runs a VT100 terminal on the given ReadWriter. If the ReadWriter is
  // a local terminal, that terminal must first have been put into raw mode.
  // prompt is a string that is written at the start of each input line (i.e.
  // "> ").