diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2013-10-10 09:06:44 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2013-10-10 09:06:44 -0400 |
commit | d8c5494d98348193a8c0316801afa8613677340c (patch) | |
tree | 5ea4a8fbe20789f94778657e35d35dc3fd4f0510 | |
parent | 0e56927b9eafd7fd9c3ae26e4b8a6354eeec3e72 (diff) | |
download | gpsd-d8c5494d98348193a8c0316801afa8613677340c.tar.gz |
Repaint less often.
-rw-r--r-- | gpsmon.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -446,6 +446,7 @@ static bool switch_type(const struct gps_type_t *devtype) } static void refresh_statwin() +/* refresh the device-identification window */ { /* *INDENT-OFF* */ type_name = @@ -677,6 +678,7 @@ static bool do_command(void) monitor_complain ("Device type has no speed switcher"); /* *INDENT-ON* */ + refresh_statwin(); } break; #endif /* RECONFIGURE_ENABLE */ @@ -977,10 +979,11 @@ int main(int argc, char **argv) FD_ZERO(&select_set); + refresh_statwin(); + if ((bailout = setjmp(terminate)) == 0) { /*@ -observertrans @*/ for (;;) { - refresh_statwin(); (void)wmove(cmdwin, 0, 0); /* get a packet -- calls gpsd_poll() */ |