diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2015-02-12 08:47:02 -0500 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2015-02-12 08:47:02 -0500 |
commit | 7c6114239ea10f86ade4c655fb867e959cd30448 (patch) | |
tree | 677faa228c730d4d3292e78c56fa3b409be3fd24 /gpsmon.c | |
parent | d3d309e16b5004f92a3010b1305d2ed834f72166 (diff) | |
download | gpsd-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.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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."); |