@navios/commander-tui 1.6.0 → 1.6.1

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@navios/commander-tui",
3
- "version": "1.6.0",
3
+ "version": "1.6.1",
4
4
  "license": "MIT",
5
5
  "author": {
6
6
  "name": "Oleksandr Hanzha",
@@ -1,2 +1,2 @@
1
- export * from './keyboard_manager.ts'
2
1
  export * from './create_bindings.ts'
2
+ export * from './keyboard_manager.ts'
@@ -127,6 +127,12 @@ export class ScreenManagerInstance
127
127
  async bind(options?: BindOptions): Promise<void> {
128
128
  if (this.mode !== RenderMode.UNBOUND) return
129
129
 
130
+ // In non-interactive environments (no TTY), stay in UNBOUND mode
131
+ // This allows prompts to return defaults and screens to print on completion
132
+ if (!process.stdout.isTTY) {
133
+ return
134
+ }
135
+
130
136
  this.bindOptions = options ?? {}
131
137
 
132
138
  // Resolve theme from options