User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
DaniWeb is a massive community of 375,273 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,218 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Nov 4th, 2005
Views: 1,607
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.)
ada Syntax | 5 stars
  1. handy.ads
  2. ----------
  3.  
  4. with Ada.Text_IO;
  5. package handy is
  6. procedure pause;
  7.  
  8. end handy;
  9.  
  10. handy.adb
  11. ----------
  12. with Ada.Text_IO;
  13.  
  14. package body handy is
  15. procedure pause is
  16. Wait: character;
  17. begin
  18. Ada.Text_IO.put("Press enter key to continue.");
  19. Ada.Text_IO.new_line;
  20. Ada.Text_IO.get_immediate(Wait);
  21. end pause;
  22.  
  23. end handy;
Post Comment

Only community members can submit or comment on code snippets. You must register or log in to contribute.

DaniWeb Marketplace (Sponsored Links)
All times are GMT -4. The time now is 6:02 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC