butlerx
6 years ago
No known key found for this signature in database
GPG Key ID: B37CA765BAA89170
1 changed files with
5 additions and
1 deletions
-
src/server/term.ts
|
|
@ -42,7 +42,11 @@ export default class Term { |
|
|
|
} |
|
|
|
|
|
|
|
public static login(socket: SocketIO.Socket): Promise<string> { |
|
|
|
const term = spawn('/usr/bin/env', ['node', './dist/buffer.js'], xterm); |
|
|
|
const term = spawn( |
|
|
|
'/usr/bin/env', |
|
|
|
['node', `${__dirname}/buffer.js`], |
|
|
|
xterm |
|
|
|
); |
|
|
|
let buf = ''; |
|
|
|
return new Promise((resolve, reject) => { |
|
|
|
term.on('exit', () => { |
|
|
|