oorja 2.1.5 → 2.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -5,7 +5,6 @@ export const initScreen = (username, hostname, shell, multiplexed) => {
|
|
|
5
5
|
if (multiplexed) {
|
|
6
6
|
console.log(chalk.yellowBright('You have allowed room participants to write to your shell'));
|
|
7
7
|
}
|
|
8
|
-
console.log(chalk.blue(`${chalk.bold(`${username}@${hostname}`)} Spawning streaming shell: ${chalk.bold(`${shell}`)}`));
|
|
9
8
|
console.log(`Note: Your shell size may adjust for optimum viewing experience for all participants.\n
|
|
10
9
|
This session is end-to-end encrypted.
|
|
11
10
|
To terminate stream run ${chalk.yellowBright('exit')} or press ${chalk.yellowBright('ctrl-d')} \n`);
|
|
@@ -39,10 +39,10 @@ export const teletypeApp = (options) => {
|
|
|
39
39
|
multiplexed: options.multiplex,
|
|
40
40
|
},
|
|
41
41
|
onJoin: () => {
|
|
42
|
-
initScreen(username, hostname, options.shell, options.multiplex);
|
|
43
42
|
const stdin = options.process.stdin;
|
|
44
43
|
const stdout = options.process.stdout;
|
|
45
44
|
const dimensions = userDimensions[SELF];
|
|
45
|
+
console.log(chalk.blue(`${chalk.bold(`${username}@${hostname}`)} Spawning streaming shell: ${chalk.bold(`${options.shell}`)}`));
|
|
46
46
|
term = spawn(options.shell, [], {
|
|
47
47
|
name: 'xterm-256color',
|
|
48
48
|
cols: dimensions.cols,
|
|
@@ -51,6 +51,7 @@ export const teletypeApp = (options) => {
|
|
|
51
51
|
env: options.process.env,
|
|
52
52
|
});
|
|
53
53
|
ptyFuture.promise.then(() => {
|
|
54
|
+
initScreen(username, hostname, options.shell, options.multiplex);
|
|
54
55
|
if (options.shell.endsWith('bash')) {
|
|
55
56
|
stdout.write('Adjusting shell prompt to show streaming indicator\n');
|
|
56
57
|
term.write("export PS1='📡 [streaming] '$PS1\n");
|
package/oclif.manifest.json
CHANGED