citgm icon indicating copy to clipboard operation
citgm copied to clipboard

Allow faking a tty for tests that need it

Open bengl opened this issue 9 years ago • 3 comments

Either for all modules as a global option, or one a module-by-module basis as part of their config in lookup.json.

Using something like https://github.com/chjj/pty.js

This is to help stop issues like https://github.com/nodejs/node/issues/8138 before they're released.

bengl avatar Aug 17 '16 18:08 bengl

I believe @bcoe was looking into this. Did you have nay progress?

MylesBorins avatar Aug 17 '16 18:08 MylesBorins

@TheAlphaNerd as far as yargs is concerned, https://github.com/yargs/yargs/pull/597 should take care of it. Having pty support in citgm might be still nice to have, though.

addaleax avatar Aug 17 '16 18:08 addaleax

Having some sort of instruction to use pty.js instead of the regular stdio options when spawning a new process is probably all that is needed here?

Unfortunately I think most people don't even know about that sort of difference.

Fishrock123 avatar Aug 22 '16 14:08 Fishrock123