File: screen_output.ads

package info (click to toggle)
gnat-gps 18-5
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 45,716 kB
  • sloc: ada: 362,679; python: 31,031; xml: 9,597; makefile: 1,030; ansic: 917; sh: 264; java: 17
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;