Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #15392 > unrolled thread

Some questions about the use of readline()

Started byAust zhu <austzhu119@gmail.com>
First post2019-09-21 23:23 +0800
Last post2019-09-21 23:23 +0800
Articles 1 — 1 participant

Back to article view | Back to gnu.bash.bug

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Some questions about the use of readline() Aust zhu <austzhu119@gmail.com> - 2019-09-21 23:23 +0800

#15392 — Some questions about the use of readline()

FromAust zhu <austzhu119@gmail.com>
Date2019-09-21 23:23 +0800
SubjectSome questions about the use of readline()
Message-ID<mailman.734.1569079940.2190.bug-bash@gnu.org>
Hello!
    I am having some problems with readline().  When calling the readline()
function it is blocked. I want to set a timeout for the readline function
to return.
    I tried setting rl_done=1, and fprintf(rl_instream,"\r\n");
fflush(rl_instream); can't make the readline() function return. What should
I do to make the readline() function return?
    I am using libreadline-8.0
    Thank you!

[toc] | [standalone]


Back to top | Article view | gnu.bash.bug


csiph-web