Experimenting with a Java-script using the Major shell, because it
looks like the simplest, I have inserted this code into the
:transfers section:
cmdkey C
exec "?chgdir"
setstr ""
end_cmd
I am happy to have discovered that, because this shell accepts strings rather than single key commands, I can pass a string into the Javascript, avoiding an extra prompt. E.g., typing "CLC" changes the current
file area as desired. One can even change both the library and the area, e.g. "CDOS\AE".
There's just one problem: when the Major shell accepts its next command,
the remaining characters of the command string are still there. I was expecting the line 'setstr ""' to remove them, but it doesn't. What
can I do about this?
Sysop: | Eric Oulashin |
---|---|
Location: | Beaverton, Oregon, USA |
Users: | 90 |
Nodes: | 16 (1 / 15) |
Uptime: | 09:06:43 |
Calls: | 5,073 |
Calls today: | 5 |
Files: | 8,491 |
Messages: | 352,815 |