@@ -8,8 +8,6 @@ require('../css/ansi.css');
8
8
module . exports = ConsoleProto ;
9
9
10
10
const load = require ( 'load.js' ) ;
11
- const inherits = require ( 'inherits' ) ;
12
- const Emitify = require ( 'emitify/legacy' ) ;
13
11
const currify = require ( 'currify/legacy' ) ;
14
12
const getHost = require ( './get-host' ) ;
15
13
const getEnv = require ( './get-env' ) ;
@@ -18,8 +16,6 @@ const isFn = (fn) => typeof fn === 'function';
18
16
const exec = ( fn , ...a ) => isFn ( fn ) && fn ( ...a ) ;
19
17
const sum = currify ( ( a , b ) => a + b ) ;
20
18
21
- inherits ( ConsoleProto , Emitify ) ;
22
-
23
19
function ConsoleProto ( element , options , callback ) {
24
20
let Spawn ;
25
21
let jqconsole ;
@@ -28,7 +24,6 @@ function ConsoleProto(element, options, callback) {
28
24
if ( ! ( this instanceof ConsoleProto ) )
29
25
return new ConsoleProto ( element , options , callback ) ;
30
26
31
- Emitify . call ( this ) ;
32
27
Console ( element , options , callback ) ;
33
28
34
29
const self = this ;
@@ -212,15 +207,13 @@ function ConsoleProto(element, options, callback) {
212
207
self . setPromptText ( promptText . pop ( ) ) ;
213
208
} ) ;
214
209
215
- socket . on ( 'path ' , ( path ) => {
210
+ socket . on ( 'label ' , ( path ) => {
216
211
if ( commands . length )
217
212
execute ( commands . pop ( ) , env ) ;
218
213
else
219
214
setPromptLabel ( path + '> ' ) ;
220
215
221
216
cwd = path ;
222
-
223
- self . emit ( 'path' , path ) ;
224
217
} ) ;
225
218
226
219
socket . on ( 'connect' , ( ) => {
0 commit comments