Real Time Results

I want to add a search function to a program I'm writing that will look through a text file and spit out the results.

That I can do easily enough. I would like it to output like this, which puzzles me:

Search Users
> A
- Adam
- Annette
- Andy
> Ad
- Adam


Is there anyway to have results pop up in real time, through the same or another console, or am I stuck finding another route? If so, what do you recommend me look into?

Thanks for your time.
You need unbuffered input.
May as well check readline()
I can't seem to find any documentation on readline(). Can you provide a link?
Topic archived. No new replies allowed.