Skip to content

Commit 0bcf4f3

Browse files
authored
Merge pull request #645 from JunoLab/sp/terminalfixes
update node-pty
2 parents 4ab4fd1 + b8bbc9a commit 0bcf4f3

File tree

5 files changed

+21
-19
lines changed

5 files changed

+21
-19
lines changed

lib/connection/process/basic.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use babel'
22

33
import tcp from './tcp'
4-
import * as pty from '@pfitzseb/node-pty-prebuilt'
4+
import * as pty from 'node-pty-prebuilt-multiarch'
55
import net from 'net'
66
import { paths, mutex } from '../../misc'
77

@@ -59,7 +59,8 @@ function getUnix (path, args, env) {
5959
cols: 100,
6060
rows: 30,
6161
env: env,
62-
cwd: cwd
62+
cwd: cwd,
63+
useConpty: true
6364
})
6465

6566
let sock = socket(ty)
@@ -110,7 +111,8 @@ function getWindows (path, args, env) {
110111
`-jlargs ${jlargs}`], {
111112
cols: 100,
112113
rows: 30,
113-
env: env
114+
env: env,
115+
useConpty: true
114116
})
115117

116118
let sock = socket(ty)

lib/connection/process/remote.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
'use babel'
22

33
import tcp from './tcp'
4-
import * as pty from '@pfitzseb/node-pty-prebuilt'
54
import net from 'net'
65
import { paths, mutex } from '../../misc'
76
import * as ssh from 'ssh2'

lib/runtime/console.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { customEnv } from '../connection/process/basic'
55
import { CompositeDisposable } from 'atom'
66
import { paths } from '../misc'
77
import modules from './modules'
8-
import * as pty from '@pfitzseb/node-pty-prebuilt'
8+
import * as pty from 'node-pty-prebuilt-multiarch'
99
import { debounce } from 'underscore-plus'
1010
import { selector } from '../ui'
1111
import { withRemoteConfig } from '../connection/process/remote'
@@ -252,14 +252,14 @@ function addLinkHandler (terminal) {
252252
}
253253

254254
function handleKeybinding (e, term, binds = whitelistedKeybindingsTerminal) {
255-
if (e.keyCode === 13 && (e.altKey || e.metaKey)) {
255+
if (process.platform !== 'win32' && e.keyCode === 13 && (e.altKey || e.metaKey) && e.type === 'keydown') {
256256
// Meta-Enter doesn't work properly with xterm.js atm, so we send the right escape sequence ourselves:
257257
if (term.ty) {
258258
term.ty.write('\x1b\x0d')
259259
}
260260
return false
261261
} else if (binds.indexOf(atom.keymaps.keystrokeForKeyboardEvent(e)) > -1) {
262-
// allow users to let key events to fall through to Atom's handler
262+
// let certain user defined key events fall through to Atom's handler
263263
return false
264264
}
265265
return e
@@ -315,7 +315,8 @@ function shellPty (cwd) {
315315
cols: 100,
316316
rows: 30,
317317
cwd: cwd,
318-
env: env
318+
env: env,
319+
useConpty: true
319320
}),
320321
cwd: cwd})
321322
} else {

package-lock.json

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"workspace",
1717
"outline",
1818
"documentation",
19-
"plot",
19+
"plot",
2020
"debugger"
2121
],
2222
"repository": "https://github.com/JunoLab/atom-julia-client",
@@ -25,7 +25,7 @@
2525
"atom": ">=1.39.0 <2.0.0"
2626
},
2727
"dependencies": {
28-
"@pfitzseb/node-pty-prebuilt": "0.8.1-prebuilt3",
28+
"node-pty-prebuilt-multiarch": "0.9.0",
2929
"atom-package-deps": "*",
3030
"atom-space-pen-views": "^2.0.0",
3131
"etch": "^0.14",

0 commit comments

Comments
 (0)