Skip to content

Commit bb8fcaa

Browse files
authored
Merge pull request #2695 from codefori/unhinibitedTerminalDefault
Add `+uninhibited` to the default 5250 connection string
2 parents 0a26018 + 495eb12 commit bb8fcaa

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@
306306
},
307307
"connectringStringFor5250": {
308308
"type": "string",
309-
"default": "localhost",
309+
"default": "+uninhibited localhost",
310310
"description": "The connectring string for the 5250 emulator. To use the 5250 emulator, tn5250 must be installed on the remote system via yum."
311311
},
312312
"autoSaveBeforeAction": {

src/api/configuration/config/ConnectionManager.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11

22
import os from "os";
3-
import { Config, VirtualConfig } from "./VirtualConfig";
43
import { ConnectionData } from "../../types";
54
import { ConnectionConfig } from "./types";
5+
import { Config, VirtualConfig } from "./VirtualConfig";
66

77
function initialize(parameters: Partial<ConnectionConfig>): ConnectionConfig {
88
return {
@@ -31,7 +31,7 @@ function initialize(parameters: Partial<ConnectionConfig>): ConnectionConfig {
3131
encodingFor5250: parameters.encodingFor5250 || `default`,
3232
terminalFor5250: parameters.terminalFor5250 || `default`,
3333
setDeviceNameFor5250: (parameters.setDeviceNameFor5250 === true),
34-
connectringStringFor5250: parameters.connectringStringFor5250 || `localhost`,
34+
connectringStringFor5250: parameters.connectringStringFor5250 || `+uninhibited localhost`,
3535
autoSaveBeforeAction: (parameters.autoSaveBeforeAction === true),
3636
showDescInLibList: (parameters.showDescInLibList === true),
3737
debugPort: (parameters.debugPort || "8005"),

src/ui/Terminal.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11

22
import path from 'path';
33
import vscode, { commands } from 'vscode';
4-
import { instance } from '../instantiate';
54
import IBMi from '../api/IBMi';
65
import { Tools } from '../api/Tools';
6+
import { instance } from '../instantiate';
77

88
const PASE_INIT_FLAG = '#C4IINIT';
99
const PASE_INIT_FLAG_REGEX = /#+C+4+I+I+N+I+T+$/
@@ -207,7 +207,7 @@ export namespace Terminal {
207207
terminalSettings.encoding ? `map=${terminalSettings.encoding}` : ``,
208208
terminalSettings.terminal ? `env.TERM=${terminalSettings.terminal}` : ``,
209209
terminalSettings.name ? `env.DEVNAME=${terminalSettings.name}` : ``,
210-
terminalSettings.connectionString || `localhost`,
210+
terminalSettings.connectionString || `+uninhibited localhost`,
211211
`\n`
212212
].join(` `));
213213
} else {

src/webviews/settings/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ export class SettingsUI {
155155
}))
156156
], `The terminal type for the 5250 emulator.`)
157157
.addCheckbox(`setDeviceNameFor5250`, `Set Device Name for 5250`, `When enabled, the user will be able to enter a device name before the terminal starts.`, config.setDeviceNameFor5250)
158-
.addInput(`connectringStringFor5250`, `Connection string for 5250`, `Default is <code>localhost</code>. A common SSL string is <code>ssl:localhost 992</code>`, { default: config.connectringStringFor5250 });
158+
.addInput(`connectringStringFor5250`, `Connection string for 5250`, `Default is <code>+uninhibited localhost</code> (<code>+uninhibited</code> lets you get the cursor out of protected areas with any key).<br />A common SSL string is <code>ssl:localhost 992</code>`, { default: config.connectringStringFor5250 });
159159
} else if (connection) {
160160
terminalsTab.addParagraph('Enable 5250 emulation to change these settings');
161161
} else {

0 commit comments

Comments
 (0)