You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i played a little more around with EmbeddedCLI and if i use a control sequence similar to CTRL + r for searching it messes the cli up. For instance if i enter:
I don't entirely get what you mean. Do you mean Ctrl-X <space> Ctrl-X <space> Ctrl-X ? I don't see that doing anything odd for me. Perhaps I'm missing the sequence?
If you can throw a (failing) test cast together, that'd be great?
Ok. I don't see the prompt being messed up, but I do see the args being wrong. The issue is that it's inserting the Ctrl-x as a 'normal' character - it doesn't interpret it. I'm not 100% sure if that's wrong or not - it's not unreasonable to just insert any character we see that we're not interpreting unchanged into the output stream. But dropping non-ascii wouldn't be a bad idea either...
Activity
AndreRenaud commentedon Jan 28, 2026
I don't entirely get what you mean. Do you mean
Ctrl-X <space> Ctrl-X <space> Ctrl-X? I don't see that doing anything odd for me. Perhaps I'm missing the sequence?If you can throw a (failing) test cast together, that'd be great?
andkae commentedon Jan 28, 2026
Yes you type into the shell
CTRL-xfollowed by anfollowed byCTRL-xif i now push enter i get as response some empty argumentsArg 0/3: ''and so on.There i can try to fill in such a sequence
[-]`CTRL + <char>` messes history up[/-][+]`CTRL + <char>` messes cursor position up[/+]AndreRenaud commentedon Jan 28, 2026
Ok. I don't see the prompt being messed up, but I do see the args being wrong. The issue is that it's inserting the
Ctrl-xas a 'normal' character - it doesn't interpret it. I'm not 100% sure if that's wrong or not - it's not unreasonable to just insert any character we see that we're not interpreting unchanged into the output stream. But dropping non-ascii wouldn't be a bad idea either...AndreRenaud commentedon Jan 28, 2026
A change like this might fix it, but would mean that any extended UTF-8 characters would get dropped. I don't know if they work anyway.
Perhaps just changing
if (ch > 0)toif (ch >= ' ')might be enough - drop the CTRL-? stuff, but keep everything else.andkae commentedon Jan 28, 2026
No stress, we need not a fast solution, i noticed only this behaviour and like to note it :)
[-]`CTRL + <char>` messes cursor position up[/-][+]`CTRL + <char>` leads to empty ```args```[/+]AndreRenaud commentedon Jan 28, 2026
All good - can you have a look at #38 and see if it behaves better?
andkae commentedon Jan 28, 2026
yes 5d11f33 avoids this behaviour. Thanks for changing.
AndreRenaud commentedon Jan 28, 2026
Thanks. I snuck in a few other minor tweaks that I noticed, but I'll merge it all together.
andkae commentedon Jan 28, 2026
Great work :) Thanks for changing.