Welcome Guest ( Log In | Register )

Help | Search | Members | Calendar

 
Screen Server for bash
« Next Oldest | Next Newest » Track this topic | Email this topic | Print this topic
xalyavshik
  Posted: Aug 12 2008, 22:41

Word Thrower

Group: Member
Member No.: 3096

Joined: April 11, 2008

для консольных админов

Screen Server

лицензия GPL

Գրված իմ կողմից

User Attached Image Download attachment
GNU_Linux.zip ( Number of downloads: 390 )




--------------------
# killall -9 "win PC"
 
       Top
xalyavshik
Posted: Aug 12 2008, 23:18

Word Thrower

Group: Member
Member No.: 3096

Joined: April 11, 2008

были сделанны некоторые изменения кода smile.gif
по пожже попостю
или сматрите тут ---> http://forum.lug.am/index.php?topic=3761.0

--------------------
# killall -9 "win PC"
 
       Top
xalyavshik
  Posted: Aug 13 2008, 09:49

Word Thrower

Group: Member
Member No.: 3096

Joined: April 11, 2008

մեկ ուրիշ տարբերակ wink.gif

QUOTE

#include <ncurses.h>
#include <time.h>

main()
{
  srand(time(NULL));
  initscr();
  start_color();
  init_pair(1, COLOR_CYAN, COLOR_BLACK);
  attron(COLOR_PAIR(1));
  for(;; gnu_linux());
}


gnu_linux()
{
  int x_kord, y_kord;
  x_kord=rand()%24;
  y_kord=rand()%71;
  const time_t ttime = time(NULL);
  int hours = localtime(&ttime)->tm_hour;
  int minutes = localtime(&ttime)->tm_min;
  int seconds = localtime(&ttime)->tm_sec;
  clear();
  move(x_kord, y_kord);
  printw("%d:%d:%d", hours, minutes, seconds);
  move(24,79);
  refresh();
  sleep(1);
}


gcc filename.c -lncurses wink.gif

compile անելու համար -lncurses-ը պարտադիր պետք ա


--------------------
# killall -9 "win PC"
 
       Top
Master of Puppets
Posted: Dec 1 2008, 19:04

Eye of the Vision

Group: Moderator
Member No.: 2067

Joined: August 29, 2006

Screen server chi, screen saver a :-)))

--------------------
Master of Puppets, I'm pulling your strings, twisting your mind and smashing your dreams!
⠠⠵
 
       Top
3 replies since Aug 12 2008, 22:41 Track this topic | Email this topic | Print this topic

<< Back to Unix programming

 




Arminco Global Telecommunications