Skip to content

Commit 40e1f13

Browse files
committed
set $TERM in more places
to maybe work around a weird bug where this isn't set correctly sometimes
1 parent 9a2ce66 commit 40e1f13

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

lib/julia-client.coffee

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ module.exports = JuliaClient =
1919
activate: (state) ->
2020
etch.setScheduler(atom.views)
2121
@requireInk =>
22+
process.env['TERM'] = 'xterm-256color'
2223
commands.activate @
2324
x.activate() for x in [menu, @connection, @runtime]
2425
@ui.activate @connection.client

lib/runtime/console.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export function activate (_ink) {
3131
ink = _ink
3232
subs = new CompositeDisposable()
3333

34-
process.env.TERM = 'xterm-256color'
34+
process.env['TERM'] = 'xterm-256color'
3535

3636
subs.add(atom.config.observe('julia-client.consoleOptions.whitelistedKeybindingsREPL', (kbds) => {
3737
whitelistedKeybindingsREPL = kbds.map(s => s.toLowerCase())
@@ -287,6 +287,7 @@ function remotePty () {
287287
}
288288

289289
function shellPty (cwd) {
290+
process.env['TERM'] = 'xterm-256color'
290291
return new Promise((resolve, reject) => {
291292
let pr
292293
if (cwd) {

0 commit comments

Comments
 (0)