get_char and other issues

From: vertigo (none_at_microsoft.com)
Date: 06/10/04


Date: Thu, 10 Jun 2004 11:43:45 +0200

Hello
I use swi-prolog.
I wanted to read character typed from keyboard, but to "accept"
this chracter i have to press enter. But after that my program displays
only one result (and finishes saying "yes", so there are more results).
The problem is that enter in swi-prolog finishes reading characters and
finishes displaying other issues (which are normally printed after ';').

How can i solve this problem ?
I want to read one character from keyboard, and still have possibility
to press ';' to receive other issues.

Thanx
Michal



Relevant Pages

  • PC-like keyboard for console
    ... ALT-<keyboard character> does not produce the character ... My ALT key is working, ... I installed the emacs keyboard and now the NUM ... # code base shift cntrl shift alt shift cntrl shift state ...
    (comp.unix.bsd.freebsd.misc)
  • Re: Checking for a keypress on Linux ?????
    ... >polling for a keypress on the keyboard. ... the short delay in kbhit() ... a blocking single character input from stdin ... int getch; ...
    (comp.os.linux.development.apps)
  • Re: Not quite standard... but socially acceptable
    ... screen, a keyboard, and a commandline, then is there any commonly used ... How can I read a single character from the keyboard without ... Concepts such as screens and keyboards are not even ... with the terminal driver modes (CBREAK or RAW under "classic" ...
    (comp.lang.c)
  • Re: French Key board
    ... I just worked with a program to show a greek keyboard on the screen as ... code to get the character, ... which needs the 16H operation code to trap F11 and F12 if ...
    (comp.lang.asm.x86)
  • Readkey and Testkey
    ... single character from the keyboard (in "raw" mode, ... The readkey ... function returns the ASCII code of the character pressed in the AL ... The testkey procedure tests to see if a character is available at the ...
    (alt.lang.asm)