terminal icon indicating copy to clipboard operation
terminal copied to clipboard

WT -? -help --help window should include a link to the command line arguments

Open Karl-WE opened this issue 5 years ago • 3 comments

including a perma link into the help window

currently the help output is very basic.

Usually commands in cmd / powershell will not open a Win32 message box for help (except some few like slmgr, msiexec but print it in the console

including a link or output in console session

Please consider to output the help content into the console session and / or include a permanent link to https://github.com/microsoft/terminal/blob/master/doc/user-docs/UsingCommandlineArguments.md

for further documentation. . This will help new users

currently the output is a Win32 message box.

Help

wt - the Windows Terminal Usage: [OPTIONS] [SUBCOMMAND]

Options: -h,--help Print this help message and exit

Subcommands: new-tab Create a new tab split-pane Create a new split pane focus-tab Move focus to another tab


OK

Karl-WE avatar Feb 15 '20 11:02 Karl-WE

Please consider to output the help content into the console session

This is not possible. Sorry. Second section of https://github.com/microsoft/terminal/issues/4570#issuecomment-586551445.

DHowett-MSFT avatar Feb 18 '20 18:02 DHowett-MSFT

Not sure if this should be another issue, but an improvement would be to be able to copy the text from the dialogs. Currently it's impossible to select and copy the text that appears in the help or version window.

l1n3n01z avatar Jan 01 '22 10:01 l1n3n01z

@l1n3n01z, you can press Ctrl+C to copy the text from Win32 message boxes like the ones shown by wt --help and wt --version. The message box plays a sound as if it had not understood the key combination, but it copies the text to the clipboard anyway, formatted like this:

---------------------------
Help
---------------------------
Terminale Windows
1.20.11381.0
---------------------------
OK   
---------------------------

(Curiously, if you press Ctrl+Insert instead, then the message box likewise copies the text, but it does not play a sound.)

As for showing a link in the wt --help window: it could be done by replacing the message box with a task dialog and handling the TDN_HYPERLINK_CLICKED notification in the callback function. However, the current wt --help window has some ugly misalignment and line wrapping in its two-column tables, and a task dialog wouldn't support such formatting any better than a message box, so a custom dialog box might be a better solution.

KalleOlaviNiemitalo avatar Jun 21 '24 10:06 KalleOlaviNiemitalo