stmhal: Fix bug with USB CDC transmit buffer wrap around.
stmhal: Improve REPL CTRL commands.