wsh-repl - Windows Scripting Host REPL and interaction mode for emacs.
wsh-repl is a Windows Scripting Host REPL. Right now it is very alpha quality software.
Right now it offers VERY simple functionality, giving you a console into the windows scripting host from Emacs. However, this can be used to script windows actions from within Emacs.
It lives as 2 separate files, the first is the comint interaction mode wsh-repl.el, and the second is a simple Javascript (JSript) file to actually handle REPL interaction.
The best bet is to download the files via github:
http://github.com/jonnay/wsh-repl
The JScript REPL was built to be extensible. It all runs inside of a REPL object that has the following properties:
* version - version of the REPL
* executing - boolean, whether or not the REPL should continue to execute
* prompt - the REPL prompt
* start - function called when the REPL starts up
* showMOTD - function called to display the welcome message
* getPrompt - function called to get the prompt string
* exec - the actual Read Eval Print Loop function
* stop - function to stop the REPL
So if you wanted to change the prompt to "I am genie" you could set the prompt parameter, or re-write the getPrompt function.
REPL.prompt = "I AM GENIE! >";
or
REPL.getPrompt = function() { return "I AM GENIE!" };
