File: screen_output.ads

package info (click to toggle)
gnat-gps 4.3-5
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 49,096 kB
  • ctags: 20,461
  • sloc: ada: 274,120; ansic: 154,849; python: 9,890; tcl: 9,812; sh: 8,192; xml: 7,970; cpp: 4,737; yacc: 3,520; makefile: 2,136; lex: 2,043; java: 1,638; perl: 302; awk: 265; sed: 161; asm: 14; fortran: 2; lisp: 1
file content (26 lines) | stat: -rw-r--r-- 1,145 bytes parent folder | download | duplicates (16)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
--  Routines used to print messages on the screen

package Screen_Output is

   procedure Msg (S1 : String; S2 : String := ""; End_Line : Boolean := True);
   --  Prints message S1 followed by S2 on the screen. If End_Line is True
   --  appends to the message a carriage return (ie it ends a line).

   procedure Debug_Msg (S : String);
   --  Prints a debugging message if the flag Debug_On defined inside
   --  the body of this package is set to True;

   procedure Error_Msg (S1 : String; S2 : String := ""; S3 : String := "");
   --  Prints the error message S1 followed by S2 followed by S3 on the screen.

   procedure Syntax_Error (S : String; Error_Pos : Natural := 0);
   --  Prints the current input line that is being read indicating the
   --  character that caused the syntax error. The position of this
   --  character is given in Error_Pos. If Error_Pos = 0 then the position
   --  of the last character read is used. After printing the current input
   --  line prints message S preceded by the current line number.

   procedure Pause;
   --  Prints a pause message, and then wait for a carriage return.

end Screen_Output;