Changeset 2373
- Timestamp:
- Jun 13, 2008, 5:13:12 PM (13 years ago)
- Location:
- neercs/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
neercs/trunk/README
r1436 r2373 1 $Id: README 2182 2008-01-01 00:07:04Z jylam $ 2 3 Building neercs 4 5 o Run configure then make 6 o Run make install as root to make it system-wide 7 8 Using neercs 9 10 o Run neercs by invocating 'neerc' or src/neercs 11 o type ctrl-a-h to see the help screen -
neercs/trunk/src/effects.c
r2371 r2373 187 187 x+=2; 188 188 y++; 189 cucul_printf(cv, (cucul_get_canvas_width(cv) - strlen(PACKAGE_STRING)) / 2, y-1, PACKAGE_STRING); 189 cucul_printf(cv, 190 (cucul_get_canvas_width(cv) - strlen(PACKAGE_STRING)) / 2, 191 y-1, 192 PACKAGE_STRING); 190 193 cucul_printf(cv, x, y++, "Copyright (c) 2006-2008 "); 191 194 cucul_printf(cv, x, y++, " Sam Hocevar <sam@zoy.org>"); -
neercs/trunk/src/main.c
r2372 r2373 171 171 * each of them starved at least once. */ 172 172 173 if(screen_list->screen[i]->fd < 0 || !FD_ISSET(screen_list->screen[i]->fd, &fdset)) 173 if(screen_list->screen[i]->fd < 0 || 174 !FD_ISSET(screen_list->screen[i]->fd, &fdset)) 174 175 continue; 175 176 … … 178 179 ssize_t nr; 179 180 180 screen_list->screen[i]->buf = realloc(screen_list->screen[i]->buf, 181 screen_list->screen[i]->total + 1024); 181 screen_list->screen[i]->buf = 182 realloc(screen_list->screen[i]->buf, 183 screen_list->screen[i]->total + 1024); 182 184 nr = read(screen_list->screen[i]->fd, 183 screen_list->screen[i]->buf + screen_list->screen[i]->total, 1024); 185 screen_list->screen[i]->buf + 186 screen_list->screen[i]->total, 1024); 184 187 185 188 if(nr > 0) … … 203 206 if(!screen_list->count) break; 204 207 205 for(i = 0; i < screen_list->count; i++) if(screen_list->screen[i]->total) 208 for(i = 0; i < screen_list->count; i++) 209 if(screen_list->screen[i]->total) 206 210 { 207 211 unsigned long int bytes; 208 212 209 bytes = import_term(screen_list, screen_list->screen[i], screen_list->screen[i]->buf, screen_list->screen[i]->total); 213 bytes = import_term(screen_list, 214 screen_list->screen[i], 215 screen_list->screen[i]->buf, 216 screen_list->screen[i]->total); 210 217 211 218 if(bytes > 0) 212 219 { 213 220 screen_list->screen[i]->total -= bytes; 214 memmove(screen_list->screen[i]->buf, screen_list->screen[i]->buf + bytes, screen_list->screen[i]->total); 221 memmove(screen_list->screen[i]->buf, 222 screen_list->screen[i]->buf + bytes, 223 screen_list->screen[i]->total); 215 224 refresh = 1; 216 225 } … … 257 266 case 0x03: //CACA_KEY_CTRL_C: 258 267 prevpty = pty; 259 pty = add_screen(screen_list, create_screen(w, h, default_shell)); 268 pty = 269 add_screen(screen_list, create_screen(w, h, default_shell)); 260 270 refresh = 1; 261 271 break; … … 364 374 365 375 cucul_gotoxy(cv, 366 screen_list->screen[pty]->x + cucul_get_cursor_x(screen_list->screen[pty]->cv), 367 screen_list->screen[pty]->y + cucul_get_cursor_y(screen_list->screen[pty]->cv)); 376 screen_list->screen[pty]->x + 377 cucul_get_cursor_x(screen_list->screen[pty]->cv), 378 screen_list->screen[pty]->y + 379 cucul_get_cursor_y(screen_list->screen[pty]->cv)); 368 380 369 381 … … 532 544 list->screen[n]->fd = -1; 533 545 kill(list->screen[n]->pid, SIGINT); 534 ret = waitpid(list->screen[n]->pid, &status, WNOHANG|WUNTRACED|WCONTINUED); 546 ret = waitpid(list->screen[n]->pid, &status, 547 WNOHANG|WUNTRACED|WCONTINUED); 535 548 if(!ret) 536 549 kill(list->screen[n]->pid, SIGQUIT); 537 ret = waitpid(list->screen[n]->pid, &status, WNOHANG|WUNTRACED|WCONTINUED); 550 ret = waitpid(list->screen[n]->pid, &status, 551 WNOHANG|WUNTRACED|WCONTINUED); 538 552 if(!ret) 539 553 kill(list->screen[n]->pid, SIGABRT); 540 ret = waitpid(list->screen[n]->pid, &status, WNOHANG|WUNTRACED|WCONTINUED); 554 ret = waitpid(list->screen[n]->pid, &status, 555 WNOHANG|WUNTRACED|WCONTINUED); 541 556 if(!ret) 542 557 kill(list->screen[n]->pid, SIGKILL);
Note: See TracChangeset
for help on using the changeset viewer.