Skip to content

Commit

Permalink
#393 Application scripting runtime (reword js to javascript)
Browse files Browse the repository at this point in the history
  • Loading branch information
o-sdn-o committed Jun 3, 2023
1 parent 66ac0b1 commit 60e7e0c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions src/netxs/desktopio/scripting.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -195,17 +195,18 @@ namespace netxs::scripting
// repl: Proceed input.
void ondata(view data)
{
if (active)
//if (active)
{
log(prompt::repl, ansi::hi(utf::debase<faux, faux>(data)));
log(data, faux);
//stream.s11n::sync(data);
}
}
// repl: Proceed input.
template<class T>
void ondata(view data, T target)
{
log(prompt::repl, ansi::hi(utf::debase<faux, faux>(data)));
//log(prompt::repl, ansi::hi(utf::debase<faux, faux>(data)));
log(data, faux);
}
// repl: Shutdown callback handler.
void onexit(si32 code, view msg = {})
Expand Down
4 changes: 2 additions & 2 deletions src/vtm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ R"==(
<powershell cwd="" tty=y cmd="powershell -NonInteractive" run="\"Hello World!\""/>
<pwsh cwd="" tty=y cmd="pwsh -NonInteractive" run="\"Hello World!\""/>
<lua cwd="" tty=n cmd="lua -i" run="print \"Hello World!\""/>
<js cwd="" tty=n cmd="node -i">
<javascript cwd="" tty=n cmd="node -i">
<run>
console.log("Hello, World!");
</run>
</js>
</javascript>
</scripting>
<menu selected=Term> <!-- Set selected using menu item id. -->
<item*/> <!-- Use asterisk at the end of the element name to set defaults.
Expand Down

0 comments on commit 60e7e0c

Please sign in to comment.