[LC++]using readline and istream input methods?

Julien Claassen julien at c-lab.de
Sun Nov 6 17:44:01 UTC 2005

  I've got a problem, which may not be really on topic here, but I don't know
where else to ask.
  I've got a program where I use the readline library to read commands. Yet at
some points I really think it's best to use getline or cin. Yet sometimes the
following happens:
   readline prompt> input <ENTER>
  cin/getline: (some magic input I don't enter)
  I tried to empty the input buffer, but I wasn't successful. Does anyone
  1. how to empty the input buffer?
  2. What this problem might be, if it isn't some backheld newline?
  Kindest regards and thanks for any help!

Music was my first love and it will be my last (John Miles)

======== FIND MY WEB-PROJECT AT: ========
http://ltsb.sourceforge.net - the Linux TextBased Studio guide

More information about the tuxCPProgramming mailing list