diff --git a/library_surveyor.c b/library_surveyor.c index 19a98d0..2cb4d28 100644 --- a/library_surveyor.c +++ b/library_surveyor.c @@ -33,8 +33,7 @@ void PlatformLibraryInit() void Csignal(struct ParseState *Parser, struct Value *ReturnValue, struct Value **Param, int NumArgs) // check for kbhit, return t or nil { - unsigned char ch; - if (getchar(&ch)) + if (getsignal()) ReturnValue->Val->Integer = 1; else ReturnValue->Val->Integer = 0;