replit-archive / jq-console

Feature complete web terminal

Home Page:http://replit.github.com/jq-console/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Introduce echo control

voodooattack opened this issue · comments

Currently, the library always echoes key strokes on the prompt.

I was able to prevent this using the following code, but it would be great if it was optional.

console.$prompt_left = $('<div></div>');

Care to mention your use case? Is it for a password prompt?

Yes. I'm building a "hacking" game, and a visible password looks terrible.

here is where the echo happens. https://github.com/replit/jq-console/blob/4923dbe841f5c894d133afb6e3681fa149383b2f/src/jqconsole.coffee#L793

Maybe add an option somewhere to disable it (echo: true/false). Patches welcome