Powershell menu selection (like GRUB, curses, etc.) [closed] - powershell

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I want do provide the user with a menu in Powershell where he can select entities with the arrow keys just like in GRUB or just the very basic idea of curses to replace the (Y)es or (N)o command line inputs. (Or for folder selection or whatever)
Is there already a framework or something that can help me as a starting point?
I already checked the Out-GridView, but this leaves Powershell to another window.

You need to use the System.Management.Automation.Host.ChoiceDescription .NET Framework class, which is designed for console menus.
For a very good example of use, see this Technet Blog article.
EDIT: I missed the fact that you wanted an arrow keys/enter key driven CLI menu.
I found a blog post from Jakob Bindslet that seems to be just what you wanted, although I confess I can't try it just yet, but I can't wait to!
EDIT: Another excellent option from Micahel Albert can be found on his blog; I found this option to be superior in that it does not clear the console window on arrow navigation.

Related

Why is my Chrome Developer Tool for mobile ugly [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 years ago.
Improve this question
after update of my Chrome, developer tools started to look ugly. It's really annoying and it's not UX friendly. Is there any way how to turn it back?
this old one that i want
There is no way to revert to the old user interface. The current interface is what will be continued to get refined going forward.
If you have specific suggestions to improve this interface then you can file issues on the Chromium Issue Tracker. Please try to keep a single suggestion to an issue, this way each idea can have its own discussion and work assigned. Issues with multiple suggestions of feedback are difficult to have a good conversation around.
I assume you mean the right side docking location?
You can click on the 3 vertical dots in the top corner next the X to close it and it will show you the options to change the docking location.
Alternatively, on Mac, you can use the shortcut key CMD+SHIFT+D on Windows CTRL+SHIFT+D to toggle the docking locations quickly.

MS Word: Strange mode where typeover inserts instead [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I seem to have gotten Microsoft Word (from Office 2003) into a weird mode.
If I select some text with the mouse and "type over" it, the new text is inserted before the selected text instead of replacing it. Same thing happens if I use the Delete or Backspace key to eliminate it.
The following do work as expected:
1. backspace over the characters I want to delete, one character per keystroke
2. Same thing with the Delete key
3. control-X to "cut" the text.
Does anybody know how to return to "normal" behavior? And for that matter, how I managed to get into this mode?
You have activated the overwrite function!
https://support.office.com/en-us/article/Turn-on-or-off-overtype-mode-2fe125af-505f-4ce7-bbea-f0e64e381e75
The comment by MyDog led me to the right answer:
Tools menu ->Options, select the "Edit" pane and check "Typing Replaces Selection".
I have also found out what causes the problem -- at least the immediate cause. If I copy an image from another app (e.g., Irfanview or MS Paint) and paste it into the Word document, that turns off "typing replaces selection". I'm not sure why MS thought this would be a good idea, or if it's just a bug, but at least now I know what causes it, and that I have to turn typeover back on after pasting an image.

plugin for a new language [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I am developing a development tool for a new language. I can't say the details of the language because the organization applied for patent. I am new to eclipse and plugin development. how can I create a user interface which is similar to cdt or jdt. The first module I have to complete is UI development. Please help me to find some good source which give the jdt ui code.
now i need to change file -> new . when click on new it should give the option to create any type of file i.e. user defined file also can create
If you're new to plugin development, I'd strongly recommend taking a look at Xtext:
http://www.eclipse.org/Xtext/
It is exactly what you are searching for: you give it the BNF of your language, and it gives you an Eclipse build with an editor, syntax highlight, content assist, validation & quick fixes, outlines, etc. (Of course, this is a bit simplified description but that's the idea behind the project.)
What you are asking for is very complex and quite a big task. I think you should start by creating a custom editor with syntax highlighting for your new language. This question may help you get started.

Perl eBay::API passing a listing title to get the category [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I'm wondering if, using Perl's eBay::API, there is a way to pass the title of a potential listing and return a category recommendation?
For example, if I entered "Lapierre Zesty 914 2013" it would return something like
"Sporting Goods > Cycling > Bikes" or perhaps a set of possibilities?
I started looking at http://search.cpan.org/~tkeefer/eBay-API-0.25/, but there are so many modules, I hoped someone could point me at the right one...
I'm searching eBay.co.uk. If eBay::API doens't do it, but something else does (in Perl), please do say.
On http://search.cpan.org/~tkeefer/eBay-API-0.25/, find the "Other tools" link. There's a search function so you can find things in all of the distribution files. Looking for keywords such as "suggested" often lead you in the right direction. :)
Of course, two minutes after asking, I found it: GetSuggestedCategories does the trick.

What is the best way to learn texmacs? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
I currently use Kile to edit LaTeX documents. I don't like kile for a couple of reasons so I was thinking of trying to learn how to use texmacs. I have been through a tutorial for emacs which I am now getting to grips with. The documentation for texmacs and auctex are pretty weak in terms of explaining how to install and how to use those things. A quick google search didn't show up any friendly "how-to"s on this topic. Are there any resources you can direct me to?
I'm a bit puzzled by your question. I use Emacs+Auctex on Windows, Linux and OS X machines and have never had any problem installing them. I'd suggest heading to http://www.gnu.org/software/auctex/ and following the instructions. If you have any more specific questions post again.
sorry I can't help you with TeXmacs, I just wanted to note that this program isn't under active development for quite some time now. If you look at the homepage the copyright notice is until year 2003!
If you are looking for a more GUI oriented LaTeX editor I can recommend LyX. Emacs+AucTeX is of course wonderful, but it has a certain learning curve.
However if you plan to learn Emacs or are using it already, than you should definitely go for it!