X-Git-Url: http://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=doc%2Fhtml%2Fada%2Fterminal_interface-curses-text_io-aux__adb.htm;fp=doc%2Fhtml%2Fada%2Fterminal_interface-curses-text_io-aux__adb.htm;h=2fa040c7d603a89f560eb27113984e38bcdd2822;hp=79157cc3e75f30dada5e09bb0cff60b84083f38c;hb=47d2fb4537d9ad5bb14f4810561a327930ca4280;hpb=c55d387cebf1cee4757ca2c2ef4fbeae59ee4175
diff --git a/doc/html/ada/terminal_interface-curses-text_io-aux__adb.htm b/doc/html/ada/terminal_interface-curses-text_io-aux__adb.htm
index 79157cc3..2fa040c7 100644
--- a/doc/html/ada/terminal_interface-curses-text_io-aux__adb.htm
+++ b/doc/html/ada/terminal_interface-curses-text_io-aux__adb.htm
@@ -24,7 +24,8 @@
-
+
+
@@ -52,95 +53,95 @@
-
-
+
+
-package body Terminal_Interface.Curses.Text_IO.Aux is
+package body Terminal_Interface.Curses.Text_IO.Aux is
- procedure Put_Buf
- (Win : Window;
- Buf : String;
- Width : Field;
- Signal : Boolean := True;
- Ljust : Boolean := False)
+ procedure Put_Buf
+ (Win : Window;
+ Buf : String;
+ Width : Field;
+ Signal : Boolean := True;
+ Ljust : Boolean := False)
is
- L : Field;
- Len : Field;
- W : Field := Width;
- LC : Line_Count;
- CC : Column_Count;
- Y : Line_Position;
- X : Column_Position;
+ L : Field;
+ Len : Field;
+ W : Field := Width;
+ LC : Line_Count;
+ CC : Column_Count;
+ Y : Line_Position;
+ X : Column_Position;
- procedure Output (From, To : Field);
+ procedure Output (From, To : Field);
- procedure Output (From, To : Field)
+ procedure Output (From, To : Field)
is
begin
- if Len > 0 then
- if W = 0 then
- W := Len;
+ if Len > 0 then
+ if W = 0 then
+ W := Len;
end if;
- if Len > W then
+ if Len > W then
- W := Len;
+ W := Len;
end if;
- pragma Assert (Len <= W);
- Get_Size (Win, LC, CC);
- if Column_Count (Len) > CC then
- if Signal then
- raise Layout_Error;
+ pragma Assert (Len <= W);
+ Get_Size (Win, LC, CC);
+ if Column_Count (Len) > CC then
+ if Signal then
+ raise Layout_Error;
else
return;
end if;
else
- if Len < W and then not Ljust then
+ if Len < W and then not Ljust then
declare
- Filler : constant String (1 .. (W - Len))
+ Filler : constant String (1 .. (W - Len))
:= (others => ' ');
begin
- Put (Win, Filler);
+ Put (Win, Filler);
end;
end if;
- Get_Cursor_Position (Win, Y, X);
- if (X + Column_Position (Len)) > CC then
- New_Line (Win);
+ Get_Cursor_Position (Win, Y, X);
+ if (X + Column_Position (Len)) > CC then
+ New_Line (Win);
end if;
- Put (Win, Buf (From .. To));
- if Len < W and then Ljust then
+ Put (Win, Buf (From .. To));
+ if Len < W and then Ljust then
declare
- Filler : constant String (1 .. (W - Len))
+ Filler : constant String (1 .. (W - Len))
:= (others => ' ');
begin
- Put (Win, Filler);
+ Put (Win, Filler);
end;
end if;
end if;
end if;
- end Output;
+ end Output;
begin
- pragma Assert (Win /= Null_Window);
- if Ljust then
- L := 1;
- for I in 1 .. Buf'Length loop
- exit when Buf (L) = ' ';
- L := L + 1;
+ pragma Assert (Win /= Null_Window);
+ if Ljust then
+ L := 1;
+ for I in 1 .. Buf'Length loop
+ exit when Buf (L) = ' ';
+ L := L + 1;
end loop;
- Len := L - 1;
- Output (1, Len);
+ Len := L - 1;
+ Output (1, Len);
else
- L := Buf'Length;
- for I in 1 .. Buf'Length loop
- exit when Buf (L) = ' ';
- L := L - 1;
+ L := Buf'Length;
+ for I in 1 .. Buf'Length loop
+ exit when Buf (L) = ' ';
+ L := L - 1;
end loop;
- Len := Buf'Length - L;
- Output (L + 1, Buf'Length);
+ Len := Buf'Length - L;
+ Output (L + 1, Buf'Length);
end if;
- end Put_Buf;
+ end Put_Buf;
-end Terminal_Interface.Curses.Text_IO.Aux;
+end Terminal_Interface.Curses.Text_IO.Aux;