9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: "Russ Cox" <rsc@plan9.bell-labs.com>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] events
Date: Wed, 19 Feb 2003 16:57:42 -0500	[thread overview]
Message-ID: <76bb1f25b029cc3a1ddf5e8d3a3a8805@plan9.bell-labs.com> (raw)
In-Reply-To: <6ab179dcbf4c6ece11328ca41724fed2@plan9.escet.urjc.es>

event(2):

>>>       Einit must be called first.  If the argument to einit has
          the Emouse and Ekeyboard bits set, the mouse and keyboard
          events will be enabled; in this case, initdraw (see
          graphics(2)) must have already been called.  The user must
          provide a function called eresized to be called whenever the
          window in which the process is running has been resized; the
          argument new is a flag specifying whether the program must
          call getwindow (see graphics(2)) to re-establish a connec-
          tion to its window.  After resizing (and perhaps calling
          getwindow), the global variable screen will be updated to
          point to the new window's Image structure.


Your code:

	estart(Inkey,Stdin,1); /
	einit(Emouse|Ekeyboard|Inkey);

Russ


  parent reply	other threads:[~2003-02-19 21:57 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-19 13:23 paurea
2003-02-19 13:56 ` Russ Cox
2003-02-19 14:08   ` paurea
2003-02-19 14:13     ` Russ Cox
2003-02-19 14:31       ` paurea
2003-02-19 21:57 ` Russ Cox [this message]
2003-02-20 11:18   ` paurea
  -- strict thread matches above, loose matches on Subject: below --
2003-02-19 13:20 paurea

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=76bb1f25b029cc3a1ddf5e8d3a3a8805@plan9.bell-labs.com \
    --to=rsc@plan9.bell-labs.com \
    --cc=9fans@cse.psu.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).