cloudcmd v6.10.1
Terminal on Windows
Starting from this release gritty is integrated into Cloud Commander Windows Application
based on electron.
You can find it in Downloads
, it is called cloudcmd-v6.10.1-win32-x64.zip
.
Terminal
can be opened with Shift + ~
and close it with Shift + Esc
.
Add Terminal to middleware
You can use gritty
as a terminal
when you using Cloud Commander
as middleware this way.
Install dependencies with:
npm i cloudcmd gritty express socket.io --save
And create app.js
with content:
const http = require('http');
const cloudcmd = require('cloudcmd');
const io = require('socket.io');
const app = require('express')();
const port = 1337;
const prefix = '/cloudcmd';
const server = http.createServer(app);
const socket = io.listen(server, {
path: `${prefix}/socket.io`
});
const terminal = true;
const terminalPath = 'gritty';
const config = {
terminal,
terminalPath,
};
app.use(cloudcmd({
socket, /* used by Config, Edit (optional) and Console (required) */
config,
}));
server.listen(port);
fix
- (webpack) umd -> var: load editor before console
- (edit-names) deepword: setMode
- (terminal) config: terminal and terminalPath checked before set