summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libdraw/computil.c2
-rw-r--r--man/1/wm4
-rw-r--r--man/2/devpointer33
-rw-r--r--man/2/draw-display2
-rw-r--r--man/2/draw-screen2
5 files changed, 32 insertions, 11 deletions
diff --git a/libdraw/computil.c b/libdraw/computil.c
index 3ec103b8..aa1f1ad8 100644
--- a/libdraw/computil.c
+++ b/libdraw/computil.c
@@ -2,7 +2,7 @@
#include "draw.h"
/*
- * compressed data are seuences of byte codes.
+ * compressed data are sequences of byte codes.
* if the first byte b has the 0x80 bit set, the next (b^0x80)+1 bytes
* are data. otherwise, it's two bytes specifying a previous string to repeat.
*/
diff --git a/man/1/wm b/man/1/wm
index a4678390..667ef9a7 100644
--- a/man/1/wm
+++ b/man/1/wm
@@ -26,12 +26,12 @@ does not provide any means for starting new applications;
that facility must be provided by an auxilliary program,
.B wm/toolbar
being one such example.
-.SS Control Inferface
+.SS Control Interface
.I Wm
provides a control interface to programs running inside it
through the
.B Wmcontext
-adt that can be obtained from via the
+adt that can be obtained from the
.B Draw->Context
that it passes to applications that it starts
(see
diff --git a/man/2/devpointer b/man/2/devpointer
index 6433221c..19c82f13 100644
--- a/man/2/devpointer
+++ b/man/2/devpointer
@@ -5,9 +5,11 @@ devpointer \- I/O interface for the pointer device
.EX
include "draw.m"; # for Draw->Pointer
include "devpointer.m";
-ptr:= load Devpointer Devpointer->PATH;
+ptr := load Devpointer Devpointer->PATH;
-init: fn(file: string, posn: chan of ref Draw->Pointer): int;
+init: fn();
+reader: fn(file: string, posn: chan of ref Draw->Pointer,
+ pid: chan of (int, string));
bytes2ptr: fn(buf: array of byte) : ref Draw->Pointer;
ptr2bytes: fn(ptr: ref Draw->Pointer): array of byte;
.EE
@@ -20,11 +22,30 @@ converting them to
adts.
.PP
.B Init
-spawns a process to read continually the pointer device specified by
-.I file
-and send a
+must be called before any other operation of the module.
+.PP
+.B Reader
+should be spawned by the caller.
+It opens the pointer device specified by
+.IR file ,
+and sends a value
+.BI ( id,\ err )
+on channel
+.IR pid .
+On success,
+.I id
+is the process ID of the spawned process and
+.I err
+is nil; on an error,
+.I err
+is a diagnostic, and
+.I id
+is undefined.
+If the file was opened successfully,
+.B reader
+continually reads the pointer device and sends
.B Pointer
-adts over the channel specified by
+adts over the channel
.IR posn .
If
.I file
diff --git a/man/2/draw-display b/man/2/draw-display
index 90dbcb8d..7eb3898f 100644
--- a/man/2/draw-display
+++ b/man/2/draw-display
@@ -306,7 +306,7 @@ Returns a reference to the image published as
on display
.I d
by
-.B Image.nameimage
+.B Image.name
(see
.IR draw-image (2)).
This allows unrelated processes to share the image (eg, a window manager and client).
diff --git a/man/2/draw-screen b/man/2/draw-screen
index 5a0d283b..17a65781 100644
--- a/man/2/draw-screen
+++ b/man/2/draw-screen
@@ -114,7 +114,7 @@ parameter can be
which provides backing store to store obscured parts of the window when necessary,
and is used by the window manager and its clients; or
.BR Draw->Refnone ,
-wihch provides no refresh, and is used for windows that are transient, or are already protected by backing
+which provides no refresh, and is used for windows that are transient, or are already protected by backing
store.
.TP
.IB screen .top( wins )