summaryrefslogtreecommitdiff
path: root/monitor_proto.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2009-03-03 13:18:31 +0000
committerEric S. Raymond <esr@thyrsus.com>2009-03-03 13:18:31 +0000
commit450e0dd92476edccd3a5a9f9af65065aeb65d509 (patch)
tree1abc855f87ca48d7ec65e61024f2f1e58945d800 /monitor_proto.c
parentba5e1949c7bf3dd94e6ab80e068c59751fb172ec (diff)
downloadgpsd-450e0dd92476edccd3a5a9f9af65065aeb65d509.tar.gz
packetwin can no longer be directly accessible.
Diffstat (limited to 'monitor_proto.c')
-rw-r--r--monitor_proto.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/monitor_proto.c b/monitor_proto.c
index c1b031c8..1e927fab 100644
--- a/monitor_proto.c
+++ b/monitor_proto.c
@@ -48,7 +48,9 @@ static bool PROTO_initialize(void)
* When you enter it, two windows will be accessible to you; (1)
* devicewin, just below the status and command line at top of
* screen, and (2) packetwin, taking up the rest of the screen below
- * it; packetwin will be enabled for scrolling.
+ * it; packetwin will be enabled for scrolling. Mote, however,
+ * that you cannot update packetwin safely, as it may be NULL
+ * if the screen has no lines left over after allocating devicewin.
*
* Use this method to paint windowframes and legends on the
* freshly initialized device window. You can also use this
@@ -140,6 +142,10 @@ const struct monitor_object_t PROTO_mmt = {
* packet to the packet window, if the send_control() is playing
* nice by using session.msgbuf to assemble the message.
*
+ * void monitor_log(const char *fmt, ...)
+ * Write amessage to the packet window. Safe if the packet window
+ * is not on screen.
+ *
* void monitor_complain(const char *fmt, ...)
* Post an error message to the command window, wait till user presses a key.
* You get to make sure the message will fit.