Perhaps there is some option I'm missing, but it doesn't seem like it.
When both "arrow keys traverse history" and "auto-repeat previous command" are on, tapping the up arrow once first shows the previous command. This is redundant because the previous command is already in the input window when "auto-repeat" is on. To get to the first new command you have to tap the up-arrow twice which is a bit annoying.
Thanks! LMK if I'm missing something.
I thought I had allowed for that:
https://github.com/nickgammon/mushclient/blob/b65b1b47c5766bbccf3fc8ae41ab35bbead97d36/sendvw.cpp#L512
However that test doesn't seem to be working. Maybe Fiendish can see the problem. :)
Thanks for the reply on this!
This is a wild speculation, but might it have something to do with "auto repeat" not quite retaining the prior command but actually repeating it, so that checking the history position or get previous may not do what you expect?
If you look at command history (Ctrl+H) you will see that the repeated commands are not in fact added to the command stack.
A bit of experimenting indicates that the code in question is actually working. When testing under Windows XP (yes, I know) the up-arrow correctly goes to the previous entry (not the auto-filled one).
However testing under Wine, it does not. So, what operating system are you using?
Ah OK, I am running through Whisky (which I believe is Wine underneath) on a Mac. Should have mentioned that. I had indeed noticed some other things are tricky through wine (like ctrl+left / ctrl+right doesn't move by 1 word at a time in the command window).
I've noticed another subtlety.
Under Wine, the auto-repeat replaces the last command you typed *and* selects it.
Then when you press up-arrow the first thing it does is deselect that command (it's like the keystroke is intercepted by the edit window). After the command is deselected, then pressing up-arrow goes back to the second-last command.
However pressing Alt+up-arrow immediately goes to the previous command, so you could try that as a work-around.
Thanks, that workaround isn't too bad :)