Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Stop readline Writing Input to the Output
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Volkan Yazıcı  
View profile  
 More options Oct 14 2012, 2:44 pm
From: Volkan Yazıcı <volkan.yaz...@gmail.com>
Date: Sun, 14 Oct 2012 11:44:43 -0700 (PDT)
Local: Sun, Oct 14 2012 2:44 pm
Subject: Stop readline Writing Input to the Output

How can I make readline stop writing the read input to the output? That is,
when I do

lines = [];
var rl = readline.createInterface(process.stdin, process.stdout);
rl.resume()
rl.on("line", function (line) {
    lines.push(line);

});

read lines get written to the output as well. I would like to shut that
behaviour down. Any ideas?

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alex Kocharin  
View profile  
 More options Oct 14 2012, 3:16 pm
From: Alex Kocharin <a...@kocharin.ru>
Date: Sun, 14 Oct 2012 23:15:51 +0400
Local: Sun, Oct 14 2012 3:15 pm
Subject: Re: [nodejs] Stop readline Writing Input to the Output
Replace process.stdout with a custom stream?
--
// alex
 
 
14.10.2012, 22:44, "Volkan Yazıcı" <volkan.yazici@gmail.com>:
How can I make readline stop writing the read input to the output? That is, when I do

lines = [];
var rl = readline.createInterface(process.stdin, process.stdout);
rl.resume()
rl.on("line", function (line) {
    lines.push(line);
});

read lines get written to the output as well. I would like to shut that behaviour down. Any ideas?

 

 

--
Job Board: http://jobs.nodejs.org/
Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Volkan Yazıcı  
View profile  
 More options Oct 14 2012, 3:18 pm
From: Volkan Yazıcı <volkan.yaz...@gmail.com>
Date: Sun, 14 Oct 2012 12:18:15 -0700 (PDT)
Local: Sun, Oct 14 2012 3:18 pm
Subject: Re: [nodejs] Stop readline Writing Input to the Output

Yeah, I can make it point to /dev/null, but isn't there a better way of
doing this?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Martin Cooper  
View profile  
 More options Oct 14 2012, 5:05 pm
From: Martin Cooper <mfncoo...@gmail.com>
Date: Sun, 14 Oct 2012 14:04:53 -0700
Local: Sun, Oct 14 2012 5:04 pm
Subject: Re: [nodejs] Stop readline Writing Input to the Output

On Sun, Oct 14, 2012 at 12:18 PM, Volkan Yazıcı <volkan.yaz...@gmail.com> wrote:
> Yeah, I can make it point to /dev/null, but isn't there a better way of
> doing this?

The output stream is required with 'readline', so you have to give it
something. Depending on your use case, you can probably do what you
want by using 'read' instead:

https://github.com/isaacs/read

--
Martin Cooper


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »