aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorpx4dev <px4@purgatory.org>2014-01-22 23:51:22 -0800
committerpx4dev <px4@purgatory.org>2014-01-22 23:52:06 -0800
commit1ac8501d95f9d01bd2efc5b75373260dcc8d4530 (patch)
tree444d3a931e2793b61e7db7755bf431d3c0155bf4 /src
parent8833f81b48aa738125b42a08aca05e3131cb8f8f (diff)
downloadpx4-firmware-1ac8501d95f9d01bd2efc5b75373260dcc8d4530.tar.gz
px4-firmware-1ac8501d95f9d01bd2efc5b75373260dcc8d4530.tar.bz2
px4-firmware-1ac8501d95f9d01bd2efc5b75373260dcc8d4530.zip
Clear the screen more properly.
Diffstat (limited to 'src')
-rw-r--r--src/drivers/px4io/px4io.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/drivers/px4io/px4io.cpp b/src/drivers/px4io/px4io.cpp
index 4844372b8..b85638788 100644
--- a/src/drivers/px4io/px4io.cpp
+++ b/src/drivers/px4io/px4io.cpp
@@ -2646,17 +2646,17 @@ monitor(void)
read(0, &c, 1);
if (cancels-- == 0) {
- printf("\033[H"); /* move cursor home and clear screen */
+ printf("\033[2J\033[H"); /* move cursor home and clear screen */
exit(0);
}
}
if (g_dev != nullptr) {
- printf("\033[H"); /* move cursor home and clear screen */
+ printf("\033[2J\033[H"); /* move cursor home and clear screen */
(void)g_dev->print_status();
(void)g_dev->print_debug();
- printf("[ Use 'px4io debug <N>' for more output. Hit <enter> three times to exit monitor mode ]\n");
+ printf("\n\n\n[ Use 'px4io debug <N>' for more output. Hit <enter> three times to exit monitor mode ]\n");
} else {
errx(1, "driver not loaded, exiting");