Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Feb 24 15:52
    omajid synchronize #28130
  • Feb 22 22:30
    jeffschwMSFT milestoned #28149
  • Feb 22 22:30
    jeffschwMSFT labeled #28149
  • Feb 22 22:30
    jeffschwMSFT commented #28149
  • Feb 22 22:06
    mmitche commented #28149
  • Feb 22 21:59
    JulieLeeMSFT commented #28149
  • Feb 22 17:28
    mmitche commented #28149
  • Feb 21 19:31
    Anipik commented #28149
  • Feb 20 18:51
    stephentoub commented #14527
  • Feb 20 18:50
    daviburg commented #14527
  • Feb 20 18:39
    stephentoub commented #14527
  • Feb 19 23:15
    daviburg commented #14527
  • Feb 19 21:15
    echesakovMSFT commented #28149
  • Feb 19 19:53
    dotnet-bot removed as member
  • Feb 18 21:47
    jeffschwMSFT commented #28149
  • Feb 18 21:29
    echesakovMSFT synchronize #28149
  • Feb 18 21:29

    echesakovMSFT on echesako

    Replace 'eq' with 'in' in eng/p… (compare)

  • Feb 18 21:27
    echesakovMSFT commented #28149
  • Feb 18 21:26
    echesakovMSFT synchronize #28149
  • Feb 18 21:26

    echesakovMSFT on echesako

    Allow gcstress test scenarios w… Enable the new queue in R2R pip… Enable the new queue in eng/pip… (compare)

Joseph Musser
@jnm2
What's that from?
Hugh Gleaves
@Korporal
every key (except letters/digits and shift/alt/ctrl) causes a space to get printed and cursor to move right except BACK and TAB, when ReadKey is called but Escape prints left-arrow then cursor moves right. I suspect the Escape is being somehow intercepted by that console host thing and leading to differing behvior
Joseph Musser
@jnm2
I wonder if the Debug > Options > 'Automatically close the console when debugging stops' setting controls this.
Hugh Gleaves
@Korporal
My wife has a very impressive memory (can recall her debit credit card numbers and bank account numbers etc without issues) and I have a relatively poorer memory. But on the rare occasions she is actually wrong and I am right it matters now, she is convinced she is right and I am wrong - I cant win.
let me check that theory...
@jnm2 - You are absolutely right!
If I enable that auto close option, the behavior is identical to when running from CMD window
Joseph Musser
@jnm2
Cool!
Hugh Gleaves
@Korporal
This is helpful.
Joseph Musser
@jnm2

But on the rare occasions she is actually wrong and I am right it matters now, she is convinced she is right and I am wrong - I cant win.

This is why life is better when it's not about winning :D

It doesn't make me feel bad to not be believed even if I have a memory of something that tells me I should be very confident in it, because I know exactly how little that helps from my wife's point of view.
It's just a logistics thing.
Also think I read about a study that claimed that people's sense of confidence in memories was almost completely unreliable when compared to their actual accuracy.
It would be interesting to know the context for that one. It was a long time ago.
Stephen A. Imhoff
@Clockwork-Muse
@Korporal - Note that I'd be very cautious about an implicit arg like that in the first place, because such an invocation could happen by accident. An explicit flag arg would be far better.
Hugh Gleaves
@Korporal
@Clockwork-Muse - Well perhaps, as I mentioned the origin was Stratus minicomputers that ran a rewrite of Multics (call VOS), that system was impressive because all command line processing was through a powerful processor API.
If you typed: display_file code.c <Enter>
it displayed the file.
if you typed: display_file code.c <Shift-Enter>
it generated an editable/navigable form that let you interactively fill in the various args and options (for example -line_numbers or -match <sometext> etc etc)
this is what I'm working on, a version of this to see how far I can get with an attempted version for .Net Core
because every command (just apps) used the same parsing API all commands had this behavior, very very slick to work with.
but in this case we can just say: command_name -form <Enter> to get the same behavior, but a Shift-Enter option would have been slick
masonwheeler
@masonwheeler

What's that from?

@jnm2 You've never seen Dr. Horrible's Sing-Along Blog?!? o_0

Joseph Musser
@jnm2
Never heard of it, but I recognized Nathan Fillion!
Stephen A. Imhoff
@Clockwork-Muse
... that really sounds like it had deliberate OS support, which seems unlikely here. Also, the thing I would be more concerned with, is how these args were discovered. Either the commands would need to have a meta header as part of the compilation, or some sort of function for reporting/parsing the args separate from the invocation. Both would require OS support.
masonwheeler
@masonwheeler
(For the benefit of those who haven't seen it, the guy who claims to remember something differently is the primary antagonist, and his claim is blatantly insincere and self-serving.)
Hugh Gleaves
@Korporal
No OS support needed for this concept (other than the two keys used to start the app).
Im planning on getting a solid version running then I can share on GitHub
masonwheeler
@masonwheeler

the two keys used to start the app

[LMB, LMB] :trollface:

Stephen A. Imhoff
@Clockwork-Muse
.... well something had to generate the fillable form, whether it was the OS reading a meta header or some default library that was included in compilation (which is usually how bash tab completion is done).
Also, I'm way less worried about this version of an "argument" than what I was anticipating was happening.
Hugh Gleaves
@Korporal
Of course, you'd be interested in this I'm sure, designing this with a powerful language like C# make some of this more powerful too
Indeed, you can tab to any arg and press F1 to get help text
They really deserved credit for it, it was superb and made CLI stuff a doddle, I'm just reinventing it but for Windows with .Net, I can do a few more things too because of this
Stephen A. Imhoff
@Clockwork-Muse
You still need to get applications to "opt in", though, since if they just parse the raw args you won't be able to handle that.
Hugh Gleaves
@Korporal
The app is coded to call this (really a single function) and you pass descriptors etc into it, it does all the heavy lifting
Stephen A. Imhoff
@Clockwork-Muse
So what you're creating is a shell
Hugh Gleaves
@Korporal
with C# attributes etc I can do some of this very neat, not a shell a method call called as first line of app, you pass it the args[] array.
if you typed: command -file xyz.c +line_numbers
then pressed <Shift-Enter> it builds the form and prepopulates the relevant input fields with your already supplied args
It does a hell of a lot of work of course, but I loved it and actually wrote a solid version in Borland C for DOS
but the src is lost sadly
Stephen A. Imhoff
@Clockwork-Muse
That's still the applications "opting in", though.
Hugh Gleaves
@Korporal
OK I found this, this is a former project a PLI compiler for Win32, it uses this API and although I lost the src (for command parser) the compiler executable and the command parser DLL are still on this disk drive, here's what it looks like when invoked with the +menu option
image.png
text typed into the file_name is parsed to conform to file name rules, tab lets you hop from option to option
if you dont use +menu it just does what any other command does, matches up the supplied args with what it expects
this is easier to see with better window colors
image.png