-
Notifications
You must be signed in to change notification settings - Fork 55
How to clear screen with pash? #382
Comments
This feature is currently missing, although it shouldn't be hard to implement it... |
I will tell you about one similar bug - https://bugs.gentoo.org/show_bug.cgi?id=375717 Users come, try some tutorials (like get-help command) and go away... |
Sorry to disappoint you. As README states, the project is still in alpha state and is currently more useful to get easy Powershell things running on other platforms than starting to learn Powershell/Pash. |
Oh and regarding the other "bug" you mentioned: I think nobody cared, because Pash was not very useful back then. |
Nothing changed from that time in public perception. I know that you are lead developer of the project and this may hurt you, but my intent is different. I want to say that a few steps for simplifying adoption can significantly increase the community size. |
I'm aware of this, and this is okay for me. I never claimed Pash would have reached a state where it's publicly usable and a useful replacement for another shell. It's not "finished", yet. Why would I start with implementing a Beside this, Pash is already useful for developing cross-platform scripts and tools (like specific cmdlets), which might not be something important for most users, but for me. And as I'm lead developer, I will first get things to work that I need ;-) |
You don't. You should spread your understanding with programming tutorials to allow others to implement these cmdlets. Look at mrward and his nuget plugin for monodevelop. For each my question he have a readymade blog record with answer. I love this approach very much :) |
I copied some samples, but don't know will this be enough or not, and how to deploy all that
|
It's good that you like the blog approach. It's not a concrete tutorial, since modules are designed to be Powershell compatible. So the article explains what is already compatible, and what's not working, yet. It also links examples to binary modules, script modules, and other related information. To get concrete with the code you posted: You don't need the second class, code with the concrete cmdlet classes, as |
Oh, by the way: I'm afraid the implementation as you posted it won't show the desired affect, as the cursor position doesn't get reset. Maybe using the console subsystem's clear function is the better approach here. Because this function is so easy, we should also implement it just as a default function: |
I read an MSDN article about binary modules, and understood your last paragpaph from comment #382 (comment). I need following use case:
I think that I can achieve it right now with Snap-Ins |
Snap-Ins are more like the outdated module system from Powershell < 2.0. There is no support for auto-loading snapins. And in fact, it doesn't make much sense to create snapins now, as they have no advantages compared to modules. Since Autoloading modules is needed in order to use the 3 steps you described with custom commands. Now, without autloading, you would need to load the module explicitly first. |
ok, i will think about packaging with expicit loading (using gentoo patches for source code) but i want autoloading too - #387 |
For personal use, you can integrate an As mentioned, default cmdlets will be integrated in Pash directly anyway ;-) |
what i need to configure to make this work?
The text was updated successfully, but these errors were encountered: