[PATCH 0/3] Implementing filename completion in cmd
Eric Pouech
eric.pouech at gmail.com
Thu Mar 24 08:46:33 CDT 2022
The following series implements filename completion in cmd, à la Windows
(tab (resp. shift-tab) rotates in alphabetical order (resp. backwards alpha
order) the available filenames starting with a given prefix).
It requires two fixes in programs/conhost.
Notes to Jacek
- for the second patch, I tried to pick most of the APIs requiring
cursor positionning. I wonder if SetConsoleCursorPosition (when y is
outside a given interval) shouldn't be part of it (no concrete example
at sight, just wild thinking) (something like deltay < -5 || deltay > 0)
(This can be done later on anyway)
Signed-off-by: Eric Pouech <eric.pouech at gmail.com>
---
Eric Pouech (3):
programs/conhost: correctly recompute start of edit line on ReadConsole
programs/conhost: support relative cursor positionning
programs/cmd: implement filename completion
programs/cmd/batch.c | 279 ++++++++++++++++++++++++++++++++++++-
programs/conhost/conhost.c | 22 ++-
programs/conhost/conhost.h | 1 +
3 files changed, 294 insertions(+), 8 deletions(-)
More information about the wine-devel
mailing list