This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
I have found that the readline function from readline-2.2 will returnHi,
the first character of the command line instead of the first character
of the input buffer for buffered input. The rest of the input buffer
is OK.This has nothing to do with the cygwinb19.dll. I'm using Mingw32
compiled libraries and sources.EG: If I have a program called testit which sleeps or loops and then
calls readline and I enter abcdef before the readline call executes
readline will return tbcdef instead of abcdef.I don't know where the problem is yet. If you have an idea please let
me know.Thanks,
==
- \\||//
---o0O0--Earnie--0O0o----
--earnie_boyd@yahoo.com--
------ooo0O--O0ooo-------_________________________________________________________
DO YOU YAHOO!?
Get your free @yahoo.com address at http://mail.yahoo.com-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".
I believe that the problem is not with the readline function but with
the input buffer or keybord
that is somehow left closed for input during program execution.
The only input can be entered to the buffer while reading the standard
input (e.g. scanf).
I have encountered this problem two weeks ago.
You can try the following code which doesn't calls for readline but
also has the same problem.
main()
{
char string[20];
printf("Please type something whithin 10 seconds
from now and watch how it 'disappear' !")
wait(10);
scanf("%s",string);
printf("You typed: %s",string);
}
Only the charecters entered after the the first 10 secs will be printed.
I really don't know how to solve this problem.
If you have any ideas please feel free to let me know.
By the way, what is Mingw32 ?
-- David Avrahamov Phone number: 952-2176 Software department Motorola Semiconductor Israel
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |