code: func timestampFrame(message string) {
  	const (
  		saveCursor    = "7"
  		restoreCursor = "8"
  	)
  	sz, err := term.GetWinsize(0)
  	if err != nil {
  		return
  	}
  	esc := func(s string) {
  		os.Stdout.Write([]byte("\x1b" + s))
  	}
  	esc(saveCursor)
  	defer esc(restoreCursor)
  
  	// move cursor to -10:0
  	esc(fmt.Sprintf("[%d;%df", 0, int(sz.Width)-len(message)))
  	os.Stdout.WriteString(message)
  }
docs: // timestampFrame prints 'event timestamp' in the top right corner of the
  // terminal after playing every 'print' event