text
stringlengths
0
234
goto_xy(X_Start + 3, Y_Start + 25);
Put(S);
end message4;
---------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------
procedure message3 (X_Start, Y_Start : in Integer; S : in String) is
begin
Set_Graphical_Mode(Off);
-- reset white first
for X in 1..51 loop
Put(ASCII.ESC & "[38;5;196m");
goto_xy((X_Start + X), Y_Start + 25);
Put(' ');
end loop;
goto_xy(X_Start + 3, Y_Start + 25);
Put(S);
end message3;
---------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------
procedure message2 (X_Start, Y_Start : in Integer; S : in String) is
begin
Set_Graphical_Mode(Off);
-- White inner frame
for X in 1..51 loop
for Y in 1..9 loop
Put(ASCII.ESC & "[48;5;15m");
if Y /= 5 then
goto_xy((X_Start + X), (Y_Start + Y));
else
goto_xy((X_Start + X), (Y_Start + Y + 1));
end if;
Put(' ');
end loop;
end loop;
goto_xy(X_Start + 3, Y_Start + 8);
Put(S);
end message2;
---------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------
procedure message (X_Start, Y_Start : in Integer; S : in String) is
begin
Set_Graphical_Mode(Off);
for Y in 1..11 loop
for X in 1..55 loop
-- om inte första eller inte sista raden
if Y = 1 OR Y = 11 then
if X mod 2 = 0 then
Put(ASCII.ESC & message_frame_color1);
else
Put(ASCII.ESC & message_frame_color2);
end if;
else
if X = 1 OR X = 55 then
if Y mod 2 = 0 then
Put(ASCII.ESC & message_frame_color1);
else
Put(ASCII.ESC & message_frame_color2);
end if;
else
if Y mod 2 = 0 then
Put(ASCII.ESC & message_frame_color2);
else
Put(ASCII.ESC & message_frame_color1);
end if;
end if;
end if;
goto_xy((X_Start - 2 + X), (Y_Start - 1 + Y));
Put(' ');
end loop;
end loop;