martinheidegger / simple-terminal-menu

A menu that is easier to use on the terminal than terminal-menu

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Reading from process.stdin

jspears opened this issue · comments

Thanks for the lib, really great. I'm looking to create a cli version of subschema, and this seems very promising.

So, not really an issue, but rather following the usual route spending several hours trying to figure it out, I thought maybe i'd ask.

How would one read text input from a user. I tried just reading using the node-module read, but it screws up layout. I figure anything I did without a lib would have same issue.

Thanks!

Hello @jspears,

Thank you for looking into this lib. There are imho. better cli tools for creating something like subschema. This menu has been reduced to one task. For your case maybe inquirer might be interesting?

But to answer your question: readline2 helps to create an interface.

Closing issue,assuming it's clear to you