F1 and F3 allow partial retrieval of previous entry from console history. They are used as shortcuts such that if the following were entered at the command line:
```
md tmptmp
cd <F3>
```
F3 will retrieve the previous line from history past the cursor position, and be auto-completed to "cd tmptmp". F1 works in a similar fashion, but with one character at a time.
--
v3: conhost: Implement F1 and F3 support for history retrieval.
https://gitlab.winehq.org/wine/wine/-/merge_requests/8467
Like BUG-57912 and BUG-57913, this was encountered in https://www.smwcentral.net/?p=section&a=details&id=33546 (.resources/Lunar Magic/scripts/insert_all_patches.bat).
Unfortunately, I was unable to write a passing test; winetest redirects the child's stdout to a file, so GetConsoleScreenBufferInfo fails. And some of those numbers will vary between machines. Should I just drop the test?
--
v4: cmd/tests: Add tests for new MODE command.
cmd: Introduce MODE command.
https://gitlab.winehq.org/wine/wine/-/merge_requests/7491
Before the commit in question, both of these paths would be parsed as valid (with e.g. FindFirstFile):
```
Z:\tmp\\*
/tmp//*
```
After the commit, only the DOS path is accepted, while the Unix path returns ERROR_INVALID_NAME.
Fixes: ffa88c3993c3da97c7403209ef2068b2e3fac66f
--
https://gitlab.winehq.org/wine/wine/-/merge_requests/8464