{ (c) 1998 CREEQ <creeq@web.de> }
Program Bzsy_PC;
uses Crt;
var i : byte;

procedure initbusy;
begin
  textbackground(blue);
  clrscr;
  textcolor(white);
  write('Щ');
  for i := 2 to 39 do write('Э');
  write('Ы');
  for i := 2 to 39 do write('Э');
  write('Л');
  for i := 2 to 12 do
  begin
  gotoxy(1,i); write('К');
  gotoxy(40,i); write('К');
  gotoxy(79,i); write('К');
  end;
  write(' Ь');
  for i := 2 to 39 do write('Э');
  write('Ю');
  for i := 2 to 39 do write('Э');
  write('Й');
  for i := 14 to 24 do
  begin
  gotoxy(1,i); write('К');
  gotoxy(40,i); write('К');
  gotoxy(79,i); write('К');
  end;
  gotoxy(1,25);
  write('Ш');
  for i := 2 to 39 do write('Э');
  write('Ъ');
  for i := 2 to 39 do write('Э');
  write('М');
  gotoxy(3,3);
  write('      Virus Scanning ');
  textcolor(green);
  write('ллллллллллллллл');
  textcolor(white);
  gotoxy(3,5);
  write('     Hacker Scanning ');
  textcolor(green);
  write('ллллллллллллллл');
  textcolor(white);
  gotoxy(3,7);
  write('      Error Scanning ');
  textcolor(green);
  write('ллллллллллллллл');
  textcolor(white);
  gotoxy(3,9);
  write('      Power Scanning ');
  textcolor(green);
  write('ллллллллллллллл');
  textcolor(white);
  gotoxy(3,11);
  write('       User Scanning ');
  textcolor(green);
  write('ллллллллллллллл');
  textcolor(white);
  gotoxy(42,3);
  write('     CPU using ');
  textcolor(lightred);
  write('л');
  gotoxy(42,5);
  textcolor(white);
  write('Harddisk using ');
  textcolor(lightred);
  write('л');
  gotoxy(42,7);
  textcolor(white);
  write('  Energy using ');
  textcolor(lightred);
  write('л');
  gotoxy(42,9);
  textcolor(white);
  write(' Display using ');
  textcolor(lightred);
  write('л');
  gotoxy(42,11);
  textcolor(white);
  write('    File using ');
  textcolor(lightred);
  write('л');
  textcolor(yellow);
  gotoxy(24,3);
  write('л');
  gotoxy(24,5);
  write('л');
  gotoxy(24,7);
  write('л');
  gotoxy(24,9);
  write('л');
  gotoxy(24,11);
  write('л');
end;

procedure busy;
var x, y, a : byte;
    r1, r2, r3, r4, r5 : byte;
    b1, b2, b3, b4, b5 : byte;
    c1, c2, c3, c4, c5 : byte;
begin
  randomize;
  r1 := 57;
  r2 := 57;
  r3 := 57;
  r4 := 57;
  r5 := 57;
  b1 := 24;
  b2 := 24;
  b3 := 24;
  b4 := 24;
  b5 := 24;
  c1 := 0;
  c2 := 0;
  c3 := 0;
  c4 := 0;
  c5 := 0;
  repeat
    x := 41;
    y := 14;
    repeat
      textcolor(random(14)+1);
      gotoxy(x,y); write('лл');
      inc(x,2);
      if x = 79 then begin x := 41; inc(y); end;
      textcolor(white);
      gotoxy(55,19);
      write('Color Test');
    until y = 25;
    x := 3;
    y := 15;
    repeat
      gotoxy(x,y);
      write(chr(random(221)+33));
      inc(x,2);
      if x = 39 then begin x := 3; inc(y,2); end;
    until y = 25;
      a := random(3);
      if a = 0 then
      begin
        if r1 = 57 then inc(r1);
        gotoxy(r1,3);
        textcolor(blue);
        write('л');
        dec(r1);
      end;
      if a = 2 then
      begin
        inc(r1);
        if r1 = 78 then dec(r1);
        gotoxy(r1,3);
        textcolor(lightred);
        write('л');
      end;
      a := random(3);
      if a = 0 then
      begin
        if r2 = 57 then inc(r2);
        gotoxy(r2,5);
        textcolor(blue);
        write('л');
        dec(r2);
      end;
      if a = 2 then
      begin
        inc(r2);
        if r2 = 78 then dec(r2);
        gotoxy(r2,5);
        textcolor(lightred);
        write('л');
      end;
      a := random(3);
      if a = 0 then
      begin
        if r3 = 57 then inc(r3);
        gotoxy(r3,7);
        textcolor(blue);
        write('л');
        dec(r3);
      end;
      if a = 2 then
      begin
        inc(r3);
        if r3 = 78 then dec(r3);
        gotoxy(r3,7);
        textcolor(lightred);
        write('л');
      end;
      a := random(3);
      if a = 0 then
      begin
        if r4 = 57 then inc(r4);
        gotoxy(r4,9);
        textcolor(blue);
        write('л');
        dec(r4);
      end;
      if a = 2 then
      begin
        inc(r4);
        if r4 = 78 then dec(r4);
        gotoxy(r4,9);
        textcolor(lightred);
        write('л');
      end;
      a := random(3);
      if a = 0 then
      begin
        if r5 = 57 then inc(r5);
        gotoxy(r5,11);
        textcolor(blue);
        write('л');
        dec(r5);
      end;
      if a = 2 then
      begin
        inc(r5);
        if r5 = 78 then dec(r5);
        gotoxy(r5,11);
        textcolor(lightred);
        write('л');
      end;
      delay(1);
    gotoxy(b1,3);
    inc(c1);
    if c1 = 8 then
    begin
      c1 := 0;
      textcolor(green);
      write('л');
      inc(b1);
      if b1 = 39 then b1 := 24;
      gotoxy(b1,3);
      textcolor(yellow);
      write('л');
    end;
    gotoxy(b2,5);
    inc(c2);
    if c2 = 5 then
    begin
      c2 := 0;
      textcolor(green);
      write('л');
      inc(b2);
      if b2 = 39 then b2 := 24;
      gotoxy(b2,5);
      textcolor(yellow);
      write('л');
    end;
    gotoxy(b3,7);
    inc(c3);
    if c3 = 10 then
    begin
      c3 := 0;
      textcolor(green);
      write('л');
      inc(b3);
      if b3 = 39 then b3 := 24;
      gotoxy(b3,7);
      textcolor(yellow);
      write('л');
    end;
    gotoxy(b4,9);
    inc(c4);
    if c4 = 4 then
    begin
      c4 := 0;
      textcolor(green);
      write('л');
      inc(b4);
      if b4 = 39 then b4 := 24;
      gotoxy(b4,9);
      textcolor(yellow);
      write('л');
    end;
    gotoxy(b5,11);
    inc(c5);
    if c5 = 7 then
    begin
      c5 := 0;
      textcolor(green);
      write('л');
      inc(b5);
      if b5 = 39 then b5 := 24;
      gotoxy(b5,11);
      textcolor(yellow);
      write('л');
    end;
  until keypressed;
  readkey;
end;

begin
  initbusy;
  busy;
  textcolor(lightgray);
  textbackground(black);
  clrscr;
end.
