text stringlengths 0 234 |
|---|
if avail_points(x) >= 0 then |
temp_arraysize := temp_arraysize + 1; |
end if; |
end loop; |
declare |
test_array : dynamic_array(0..temp_arraysize); |
begin |
for x in 1..15 loop |
if avail_points(x) >= 0 then |
test_array(temp_array_index) := temp_array_index * 2; |
temp_array_index := temp_array_index + 1; |
end if; |
end loop; |
Function Definition: procedure background is |
Function Body: begin |
-- Skriver ut bakgrundsfärgen för hela terminalen |
for X in 1..300 loop |
for Y in 1..50 loop |
Put(ASCII.ESC & bg_color); |
goto_xy(X, Y); |
Put(' '); |
end loop; |
end loop; |
end background; |
--------------------------------------------------------------------------------------------- |
--------------------------------------------------------------------------------------------- |
--------------------------------------------------------------------------------------------- |
--------------------------------------------------------------------------------------------- |
--------------------------------------------------------------------------------------------- |
--------------------------------------------------------------------------------------------- |
procedure protocoll_background (X_Start, Y_Start: in Integer) is |
begin |
-- Skriver ut ramen kring protokollet |
for X in 1..31 loop |
for Y in 1..41 loop |
Put(ASCII.ESC & protocoll_frame_bg); |
goto_xy((X_Start - 3 + X), (Y_Start - 2 + Y)); |
Put(' '); |
end loop; |
end loop; |
-- Skriver ut protokollets bakgrund |
for X in 1..25 loop |
for Y in 1..38 loop |
Put(ASCII.ESC & "[48;5;15m"); |
goto_xy(X_Start + X, Y_Start + Y); |
Put(' '); |
end loop; |
end loop; |
end protocoll_background; |
--------------------------------------------------------------------------------------------- |
--------------------------------------------------------------------------------------------- |
--------------------------------------------------------------------------------------------- |
--------------------------------------------------------------------------------------------- |
--------------------------------------------------------------------------------------------- |
--------------------------------------------------------------------------------------------- |
procedure Start_screen (X_Start, Y_Start : in integer) is |
begin |
Set_Foreground_Colour(white); |
Set_Graphical_Mode(off); |
goto_xy(X_Start, Y_Start); |
Put("YYYYYYY YYYYYYY ttttttt "); |
goto_xy(X_Start, Y_Start + 1); |
Put("Y:::::Y Y:::::Y t:::::t "); |
goto_xy(X_Start, Y_Start + 2); |
Put("Y:::::Y Y:::::Y t:::::t "); |
goto_xy(X_Start, Y_Start + 3); |
Put("Y::::::Y Y::::::Y t:::::t "); |
goto_xy(X_Start, Y_Start + 4); |
Put(" YY:::::Y Y:::::YY aaaaaaaaaaaaa ttttttt:::::ttttttt zzzzzzzzzzzzzzzzz yyyyyyy yyyyyyy "); |
goto_xy(X_Start, Y_Start + 5); |
Put(" Y:::::Y Y:::::Y a::::::::::::a t:::::::::::::::::t z:::::::::::::::z y:::::y y:::::y "); |
goto_xy(X_Start, Y_Start + 6); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.