mirror of
https://github.com/modelec/modelec-marcel-ROS.git
synced 2026-01-18 16:47:43 +01:00
test serial read/write
This commit is contained in:
@@ -71,7 +71,9 @@ def curses_main(stdscr, port, baudrate):
|
|||||||
stdscr.vline(0, split_x, "|", log_height)
|
stdscr.vline(0, split_x, "|", log_height)
|
||||||
history_start_x = split_x + 2
|
history_start_x = split_x + 2
|
||||||
stdscr.addstr(0, history_start_x, "Command History:")
|
stdscr.addstr(0, history_start_x, "Command History:")
|
||||||
for i, cmd in enumerate(reversed(cmd_history[-(log_height - 2):])):
|
|
||||||
|
visible_history = cmd_history[-(log_height - 2):]
|
||||||
|
for i, cmd in enumerate(visible_history):
|
||||||
stdscr.addnstr(i + 1, history_start_x, cmd, w - history_start_x - 1)
|
stdscr.addnstr(i + 1, history_start_x, cmd, w - history_start_x - 1)
|
||||||
|
|
||||||
# --- Input line ---
|
# --- Input line ---
|
||||||
|
|||||||
Reference in New Issue
Block a user