Re: [MSH] Command completion character



The editing features that msh and cmd.exe both use are implemented by the
console subsystem not the user process. Tab-completion uses a feature in the
Console API where you can specify a secondary line-complete character. When
we get a line back, we look at the line-complete character and figure out
what to do from there. We don't currently provide a way to specify anything
other than tab for this character unfortunately. All of the other changes
suggested require writing our own command-line editor. This didn't make the
cut for V1 but is high on the list for V2.

--
Bruce Payette [MSFT]
Microsoft Command Shell Development
Microsoft Corporation
This posting is provided "AS IS" with no warranties, and confers no rights.



"Chris Warwick" <news@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:3ghbn1hr2v4bahn1g125tlafvrghk4q92l@xxxxxxxxxx
> On Fri, 11 Nov 2005 10:10:26 -0700, "Keith Hill"
> <r_keith_hill@xxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
>
>>"Jeff Jones [MSFT]" <jeffjon@xxxxxxxxxxxxxxxxxxxx> wrote in message
>>news:OGaiM7t5FHA.3592@xxxxxxxxxxxxxxxxxxxxxxx
>>> We don't currently have a way to customize the tab completion. If you
>>> have a beta ID please file a feature request. If not, let me know and I
>>> can file one for you.
>>
>>What would be nice is generic key binding to command mechanism. Besides
>>tab
>>for FilenameCompletion and DirectoryNameCompletion I would see wanting to
>>change the key binding for all commands e.g.:
>>
>>* StartOfLine (Home)
>>* EndOfLine (End)
>>* HistoryUp (UpArrow)
>>* HistoryDown (DownArrow)
>>* ShowCommandHistory (F7)
>>* PartialMatchCommandFromHistory match (F8)
>>* ClearHistory (Alt+F7)
>>* eventually ParenBracketBraceKiss (Ctrl+])
>>* eventually Copy (Ctrl+C)
>>* eventually Ccut (Ctrl+X)
>>* eventually Paste (Ctrl+V)
>>* eventually WordRight (Ctrl+RightArrow)
>>* eventually WordLeft (Ctrl+LeftArrow)
>>* eventually PartialMatchCommandFromHistoryUp (UpArrow)
>>* eventually PartialMatchCommandFromHistoryDown (DownArrow)
>>
>>Part of the issue is exposing the interactive shell "commands" and
>>allowing
>>us to rebind to different input gestures.
>
> Great idea Keith! Can I second these as feature requests for the
> much rumoured replacement console. I can't believe the amount of
> times I *still* (after all these years!) copy a string and try to
> Ctrl-V into the command shell (MSH shell these days).
>
> Oh, and by the way, in the console window, who's bright idea was it to
> put the "Edit" command just millimeters away from the "CLOSE" command
> - DOH!
>
> Chris


.



Relevant Pages

  • Re: [MSH] MSH Not So Great For Interactive Users
    ... console apps get command line editing for free when they read ... integrated the GNU readline stuff into an msh host. ...
    (microsoft.public.windows.server.scripting)
  • Re: Redirect msh.exe in/out
    ... command is completed so I can go on and either process the output or issue ... Also, there is no way to interrupt MSH other than CTRL+C, ... and a lot of other special key events also seem to be tied to the console ... *including* special key strokes such as CTRL+C... ...
    (microsoft.public.windows.server.scripting)
  • Re: MSH: Tab completion
    ... feature in MSH just like in VS 2005? ... :) I wonder how that can be implemented due to MSH's console nature... ... It's a source of limitations for MSH, it has incomplete unicode support, it's implemented in a process that has way too much privileges fo this task, console handles must be special-cased in file apis... ...
    (microsoft.public.windows.server.scripting)
  • Re: $pshome bug
    ... nope it starts a console (which i don't really have a problem with, ... is that the output is piped back to powershell until after the command ... terminate the command midway... ... (higher on it is my "truehost" feature where i create a runspace ...
    (microsoft.public.windows.server.scripting)
  • Re: finding a fax in the fax console?
    ... The command line is for the Open command for TIF files. ... > I am still unable to view any faxes from the console. ... >>>>Inbox to the Outlook Inbox. ...
    (microsoft.public.outlook.fax)

Loading