@@ -24,7 +24,7 @@ var primitive_pty = pty.native.open(COLS, ROWS);
24
24
// we just pipe the data from slave to master as a child program would do
25
25
// pty.js opens pipe fds with O_NONBLOCK
26
26
// just wait 10ms instead of setting fds to blocking mode
27
- function pty_write_read ( s , cb ) {
27
+ function ptyWriteRead ( s , cb ) {
28
28
fs . writeSync ( primitive_pty . slave , s ) ;
29
29
setTimeout ( ( ) => {
30
30
var b = Buffer ( 64000 ) ;
@@ -34,8 +34,8 @@ function pty_write_read(s, cb) {
34
34
}
35
35
36
36
// make sure raw pty is at x=0 and has no pending data
37
- function pty_reset ( cb ) {
38
- pty_write_read ( '\r\n' , cb ) ;
37
+ function ptyReset ( cb ) {
38
+ ptyWriteRead ( '\r\n' , cb ) ;
39
39
}
40
40
41
41
/* debug helpers */
@@ -107,9 +107,9 @@ describe('xterm output comparison', function() {
107
107
}
108
108
( function ( filename ) {
109
109
it ( filename . split ( '/' ) . slice ( - 1 ) [ 0 ] , done => {
110
- pty_reset ( ( ) => {
110
+ ptyReset ( ( ) => {
111
111
var in_file = fs . readFileSync ( filename , 'utf8' ) ;
112
- pty_write_read ( in_file , from_pty => {
112
+ ptyWriteRead ( in_file , from_pty => {
113
113
// uncomment this to get log from terminal
114
114
//console.log = function(){};
115
115
0 commit comments