// WriteEvent writes an event back to the window's event file,
// indicating to acme that the event should be handled internally.

WriteEvent writes an event back to the window's event file,
indicating to acme that the event should be handled internally.
// WriteEvent writes an event back to the window ' s event file // indicating to acme that the event should be handled internally .
func (w *Win) WriteEvent(e *Event) error {
	var buf bytes.Buffer
	fmt.Fprintf(&buf, "%c%c%d %d \n", e.C1, e.C2, e.Q0, e.Q1)
	_, err := w.Write("event", buf.Bytes())
	return err
}
func ( w * Win ) WriteEvent ( e * Event ) error { var buf bytes . Buffer fmt . Fprintf ( & buf , " \n " , e . C1 , e . C2 , e . Q0 , e . Q1 ) _ , err := w . Write ( " " , buf . Bytes ( ) ) return err }
WriteEvent writes an event back to the window's event file,
indicating to acme that the event should be handled internally.
WriteEvent writes an event back to the window ' s event file indicating to acme that the event should be handled internally .