summaryrefslogtreecommitdiff
path: root/gpsmon.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2015-02-12 08:47:02 -0500
committerEric S. Raymond <esr@thyrsus.com>2015-02-12 08:47:02 -0500
commit7c6114239ea10f86ade4c655fb867e959cd30448 (patch)
tree677faa228c730d4d3292e78c56fa3b409be3fd24 /gpsmon.c
parentd3d309e16b5004f92a3010b1305d2ed834f72166 (diff)
downloadgpsd-7c6114239ea10f86ade4c655fb867e959cd30448.tar.gz
In gpsmon, attempt to banish edge-of-screen cruft from initialization JSON.
Also, use TPV rather than PVT to be consistent with GPSD JSON.
Diffstat (limited to 'gpsmon.c')
-rw-r--r--gpsmon.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gpsmon.c b/gpsmon.c
index 52e6fd57..63ea02c0 100644
--- a/gpsmon.c
+++ b/gpsmon.c
@@ -453,6 +453,9 @@ static bool switch_type(const struct gps_type_t *devtype)
}
active = newobject;
devicewin = newwin((*active)->min_y, (*active)->min_x, 1, 0);
+ /* screen might have JSOM on it from the init sequence */
+ (void)clearok(stdscr, true);
+ (void)clear();
if ((devicewin == NULL) || ((*active)->initialize != NULL && !(*active)->initialize())) {
monitor_complain("Internal initialization failure - screen "
"must be at least 80x24. Aborting.");