public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug ada/111825] New: get_immediate echos without wait, no echo with wait: error?
@ 2023-10-15 17:12 thiebauddick2 at aol dot com
  2023-10-15 17:13 ` [Bug ada/111825] " thiebauddick2 at aol dot com
  2023-10-18  7:23 ` ebotcazou at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: thiebauddick2 at aol dot com @ 2023-10-15 17:12 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111825

            Bug ID: 111825
           Summary: get_immediate echos without wait, no echo with wait:
                    error?
           Product: gcc
           Version: 12.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: ada
          Assignee: unassigned at gcc dot gnu.org
          Reporter: thiebauddick2 at aol dot com
                CC: dkm at gcc dot gnu.org
  Target Milestone: ---

When running ada.text_io.get_immediate with a wait, it does not echo the input
character from the keyboard. When running it without the wait, it does not.
Running the following program and pushing the "x" key gets: AxB on the screen.

with ada.text_io; use ada.text_io;
procedure test3 is
  c: character;
  avail: boolean;
begin
  put("A");
  loop
    Get_Immediate(c, Avail);
    if Avail then
      exit;
    end if;
    delay 0.01;
  end loop;
  put ("B");
end test3; 

However, running the following program and pushing the "X" key gets: AB on the
screen.

with ada.text_io; use ada.text_io;
procedure test4 is
  c: character;
begin
  put("A");
  Get_Immediate(c);
  put ("B");
end test4;  

Is this expected behavior or an error?

gnat 11.4.0  linux mint 21.3

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug ada/111825] get_immediate echos without wait, no echo with wait: error?
  2023-10-15 17:12 [Bug ada/111825] New: get_immediate echos without wait, no echo with wait: error? thiebauddick2 at aol dot com
@ 2023-10-15 17:13 ` thiebauddick2 at aol dot com
  2023-10-18  7:23 ` ebotcazou at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: thiebauddick2 at aol dot com @ 2023-10-15 17:13 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111825

--- Comment #1 from richardthiebaud <thiebauddick2 at aol dot com> ---
anga 12.2.0 not 11.4.0

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug ada/111825] get_immediate echos without wait, no echo with wait: error?
  2023-10-15 17:12 [Bug ada/111825] New: get_immediate echos without wait, no echo with wait: error? thiebauddick2 at aol dot com
  2023-10-15 17:13 ` [Bug ada/111825] " thiebauddick2 at aol dot com
@ 2023-10-18  7:23 ` ebotcazou at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: ebotcazou at gcc dot gnu.org @ 2023-10-18  7:23 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111825

Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ebotcazou at gcc dot gnu.org
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |WONTFIX

--- Comment #2 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
I don't think that anything should be printed by Get_Immediate, but I'm not
sure that the problem comes from the compiler and that anything can be done.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-10-18  7:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-15 17:12 [Bug ada/111825] New: get_immediate echos without wait, no echo with wait: error? thiebauddick2 at aol dot com
2023-10-15 17:13 ` [Bug ada/111825] " thiebauddick2 at aol dot com
2023-10-18  7:23 ` ebotcazou at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).