Changeset 2431 for neercs/trunk/src
- Timestamp:
- Jun 15, 2008, 8:01:08 PM (14 years ago)
- Location:
- neercs/trunk/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
neercs/trunk/src/Makefile.am
r2426 r2431 2 2 bin_PROGRAMS = neercs 3 3 4 neercs_SOURCES = neercs.h grab.c main.c screens.c term.c effects.c wm.c 4 5 if USE_GRAB 6 grab_c=grab.c 7 endif 8 9 neercs_SOURCES = neercs.h $(grab_c) main.c screens.c term.c effects.c wm.c 5 10 neercs_CFLAGS = @CACA_CFLAGS@ 6 11 neercs_LDADD = @CACA_LIBS@ @UTIL_LIBS@ -
neercs/trunk/src/main.c
r2426 r2431 99 99 if(!strcmp(argv[i + 1], "-P")) 100 100 { 101 #ifdef USE_GRAB 101 102 if(i + 2 > argc) 102 103 { … … 106 107 tmp = create_screen_grab(w, h, atoi(argv[i + 2])); 107 108 i++; 109 #else 110 fprintf(stderr, "Grabbing process is not supported, sorry\n"); 111 exit(1); 112 #endif 108 113 } 109 114 else -
neercs/trunk/src/neercs.h
r2429 r2431 16 16 #include <stdint.h> 17 17 #include <caca.h> 18 19 18 20 19 #define CURRENTSCREEN screen_list->screen[screen_list->pty] … … 76 75 77 76 int create_pty(char *cmd, unsigned int w, unsigned int h, int *cpid); 77 #ifdef USE_GRAB 78 78 int create_pty_grab(pid_t pid, unsigned int w, unsigned int h); 79 79 int grab_process(pid_t pid, char *ptyname, int ptyfd); 80 #endif 80 81 81 82 long int import_term(struct screen_list *screen_list, struct screen *sc, void const *data, unsigned int size); … … 89 90 /* Screens management */ 90 91 struct screen* create_screen(int w, int h, char *command); 92 #ifdef USE_GRAB 91 93 struct screen* create_screen_grab(int w, int h, int pid); 94 #endif 92 95 int destroy_screen(struct screen *s); 93 96 int add_screen(struct screen_list *list, struct screen *s); -
neercs/trunk/src/screens.c
r2426 r2431 29 29 #include "neercs.h" 30 30 31 #ifdef USE_GRAB 31 32 struct screen* create_screen_grab(int w, int h, int pid) 32 33 { … … 56 57 return s; 57 58 } 59 #endif 58 60 59 61 struct screen* create_screen(int w, int h, char *command) -
neercs/trunk/src/term.c
r2429 r2431 578 578 } 579 579 580 #ifdef USE_GRAB 580 581 int create_pty_grab(pid_t pid, unsigned int w, unsigned int h) 581 582 { … … 596 597 return fdm; 597 598 } 599 #endif 598 600 599 601 int set_tty_size(int fd, unsigned int w, unsigned int h)
Note: See TracChangeset
for help on using the changeset viewer.