Skip to content
This repository has been archived by the owner on Nov 27, 2020. It is now read-only.

Allow non-interactive mode #690

Open
aanno opened this issue Jan 7, 2017 · 2 comments
Open

Allow non-interactive mode #690

aanno opened this issue Jan 7, 2017 · 2 comments

Comments

@aanno
Copy link

aanno commented Jan 7, 2017

Currently ogar is spawning a asyncconsole. When I try to start it with no TTY attached

/usr/bin/node src/index.js </dev/null

the following error appears:

TypeError: this.stdin.setRawMode is not a function
at new AsyncConsole (/home/ogar/Ogar/node_modules/asyncconsole/index.js:24:12)
at Timeout._onTimeout (/home/ogar/Ogar/src/index.js:50:17)
at ontimeout (timers.js:365:14)
at tryOnTimeout (timers.js:237:5)
at Timer.listOnTimeout (timers.js:207:5)

This is because setRawMode is only available for TTYs (see nodejs/node-v0.x-archive#8204)

Please allow to start ogar non-interactive, i.e. without an asyncconsole.

@Luka967
Copy link
Collaborator

Luka967 commented Jan 7, 2017

Use this version of the index.js.

@Andrews54757
Copy link
Contributor

@aanno Actually, there is a mode. Do node index.js --noconsole

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants