oorja 2.1.3 → 2.1.4

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.
@@ -57,10 +57,8 @@ export const teletypeApp = (options) => {
57
57
  }
58
58
  if (options.shell.endsWith('zsh')) {
59
59
  stdout.write('Adjusting shell prompt to show streaming indicator\n');
60
- const zshFunc = ' _streaming_prompt_precmd() { if [[ "$PROMPT" != *\'📡 [streaming] \'* ]]; then PROMPT="📡 [streaming] $PROMPT"; fi; }\n';
61
- const zshHook = ' precmd_functions+=(_streaming_prompt_precmd)\n';
62
- term.write(zshFunc);
63
- term.write(zshHook);
60
+ // FIXME: this doesnt work on macos (or its probably due to some conflict with powerlevel10k)
61
+ term.write("PROMPT='📡 [streaming] '$PROMPT\n");
64
62
  }
65
63
  if (options.shell.endsWith('fish')) {
66
64
  stdout.write('Adjusting shell prompt to show streaming indicator\n');
@@ -71,11 +69,13 @@ export const teletypeApp = (options) => {
71
69
  // track own dimensions and keep it up to date
72
70
  setInterval(reEvaluateOwnDimensions, 1000);
73
71
  term.onData((d) => {
72
+ stdout.write(d);
74
73
  if (!ptyReady) {
75
74
  ptyReady = true;
76
- ptyFuture.resolve(true);
75
+ setTimeout(() => {
76
+ ptyFuture.resolve(true);
77
+ }, 100);
77
78
  }
78
- stdout.write(d);
79
79
  if (sessionCount < 2) {
80
80
  // 1 sub for own channel session
81
81
  // < 2 means no subscribers. no point pushing data.
@@ -85,5 +85,5 @@
85
85
  ]
86
86
  }
87
87
  },
88
- "version": "2.1.3"
88
+ "version": "2.1.4"
89
89
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "oorja",
3
3
  "description": "stream terminals to the web and more.",
4
- "version": "2.1.3",
4
+ "version": "2.1.4",
5
5
  "keywords": [
6
6
  "teletype",
7
7
  "terminal",