Start New Discussion within our Software Development Community

This is an Ada package that simply waits for the user to press the enter key. (If they enter anything else it's simply ignored.)

with Ada.Text_IO;
package handy is
  procedure pause;
end handy;

with Ada.Text_IO;

package body handy is
procedure pause is
  Wait: character;
    Ada.Text_IO.put("Press enter key to continue.");
  end pause;

end handy;
The article starter has earned a lot of community kudos, and such articles offer a bounty for quality replies.