summaryrefslogtreecommitdiff
path: root/cgps.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2005-08-20 12:13:45 +0000
committerEric S. Raymond <esr@thyrsus.com>2005-08-20 12:13:45 +0000
commit0ba9c8822c334c994871f7d77e0d75b95d062616 (patch)
treeaebaaf19eb9d05e90bb27618c29520f9a1be7d3e /cgps.c
parent8b9d7a6c5dd20e377c43216302a74070f02f8f4f (diff)
downloadgpsd-0ba9c8822c334c994871f7d77e0d75b95d062616.tar.gz
In cgps, show the O commands up from the server.
Diffstat (limited to 'cgps.c')
-rw-r--r--cgps.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/cgps.c b/cgps.c
index 4b2b8015..a4d33295 100644
--- a/cgps.c
+++ b/cgps.c
@@ -78,7 +78,7 @@ static void die(int sig UNUSED)
/* This gets called once for each new sentence. */
static void update_panel(struct gps_data_t *gpsdata,
char *message,
- size_t len UNUSED,
+ size_t len,
int level UNUSED)
{
int i;
@@ -242,6 +242,10 @@ static void update_panel(struct gps_data_t *gpsdata,
(void)move(10,17);
(void)printw("(%d secs) ", (int) (time(NULL) - timer));
+ (void)move(11,0);
+ (void)clrtobot();
+ (void)addstr(message);
+
/* Update the screen. */
(void)refresh();
}