Commit bc12598d authored by Adam Wujek's avatar Adam Wujek

monitor: add q to quit from monitor

Signed-off-by: 's avatarAdam Wujek <adam.wujek@creotech.pl>
parent 94973226
......@@ -830,8 +830,8 @@ figure below).
The information is refreshed at every WR iteration or periodically if
nothing else happens (so you see an up-to-date timestamp). Only values are
updated at every refresh. To force refresh of entire gui please press
\texttt{r} key. To
exit from this console mode press <Esc>. A full description of the information
\texttt{r} key. To exit from this console mode press \texttt{<Esc>} or
\texttt{q}. A full description of the information
reporter by \textit{gui} is provided in Appendix \ref{WRPC GUI elements}.
\noindent\textbf{Note:} the \textit{Synchronization status} and \textit{Timing
......@@ -841,7 +841,7 @@ the part above \texttt{Synchronization status}.
\vspace{1em}
\includegraphics[width=12cm]{wrpc_mon.png}
\includegraphics[width=15cm]{wrpc_mon.png}
\vspace{1em}
If you want to log statistics from the WRPC operation, it is better to use a
......
......@@ -339,7 +339,7 @@ void print_gui_description(void)
pcprintf(1, 1, C_BLUE, "%s WR PTP Core Sync Monitor %s",
wrc_hw_name, build_revision);
cprintf(C_MAGENTA, "\nEsc = exit; r = redraw GUI");
cprintf(C_MAGENTA, "\nEsc or q = exit; r = redraw GUI");
cprintf(C_BLUE, "\n\nTAI Time:%25sUTC offset:", "");
......@@ -648,7 +648,7 @@ int wrc_mon_gui(void)
}
/* clear colors */
pp_printf("\e[m");
pp_printf("\e[m\n");
/* clear till the end of a screen */
term_clear_to_end();
......@@ -811,13 +811,13 @@ void show_servo(struct pp_instance *ppi)
pcprintf(33, 26, C_WHITE,"%22s", optimized_pp_time_toString_ps_as_ns(&wr_servo_ext->delta_txm, buf));
cprintf(C_BLUE, " RX:");
/* print and clear till the end of a line */
cprintf(C_WHITE,"%22s\e[K\n", optimized_pp_time_toString_ps_as_ns(&wr_servo_ext->delta_rxm, buf));
cprintf(C_WHITE,"%22s\e[K", optimized_pp_time_toString_ps_as_ns(&wr_servo_ext->delta_rxm, buf));
/* Slave PHY delays TX */
pcprintf(34, 26, C_WHITE,"%22s", optimized_pp_time_toString_ps_as_ns(&wr_servo_ext->delta_txs, buf));
cprintf(C_BLUE, " RX:");
/* print and clear till the end of a line */
cprintf(C_WHITE,"%22s\e[K\n", optimized_pp_time_toString_ps_as_ns(&wr_servo_ext->delta_rxs, buf));
cprintf(C_WHITE,"%22s\e[K", optimized_pp_time_toString_ps_as_ns(&wr_servo_ext->delta_rxs, buf));
}
}
......
......@@ -262,7 +262,7 @@ int shell_interactive()
if (c == 'r')
redraw_gui();
if (!shell_ui_callback || shell_ui_callback() < 0 || c == 27)
if (!shell_ui_callback || shell_ui_callback() < 0 || c == 27 || c == 'q')
{
cmd_buf[cmd_len] = 0;
state = SH_PROMPT;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment