… | |
… | |
11 | * Copyright (c) 1997 mj olesen <olesen@me.QueensU.CA> |
11 | * Copyright (c) 1997 mj olesen <olesen@me.QueensU.CA> |
12 | * - extensive modifications |
12 | * - extensive modifications |
13 | * Copyright (c) 1997,1998 Oezguer Kesim <kesim@math.fu-berlin.de> |
13 | * Copyright (c) 1997,1998 Oezguer Kesim <kesim@math.fu-berlin.de> |
14 | * Copyright (c) 1998-2001 Geoff Wing <gcw@pobox.com> |
14 | * Copyright (c) 1998-2001 Geoff Wing <gcw@pobox.com> |
15 | * - extensive modifications |
15 | * - extensive modifications |
16 | * Copyright (c) 2003-2004 Marc Lehmann <pcg@goof.com> |
16 | * Copyright (c) 2003-2006 Marc Lehmann <pcg@goof.com> |
17 | * |
17 | * |
18 | * This program is free software; you can redistribute it and/or modify |
18 | * This program is free software; you can redistribute it and/or modify |
19 | * it under the terms of the GNU General Public License as published by |
19 | * it under the terms of the GNU General Public License as published by |
20 | * the Free Software Foundation; either version 2 of the License, or |
20 | * the Free Software Foundation; either version 2 of the License, or |
21 | * (at your option) any later version. |
21 | * (at your option) any later version. |
… | |
… | |
206 | pty.put (); |
206 | pty.put (); |
207 | } |
207 | } |
208 | |
208 | |
209 | rxvt_term::~rxvt_term () |
209 | rxvt_term::~rxvt_term () |
210 | { |
210 | { |
211 | PERL_INVOKE ((this, HOOK_DESTROY, DT_END)); |
211 | HOOK_INVOKE ((this, HOOK_DESTROY, DT_END)); |
212 | |
212 | |
213 | termlist.erase (find (termlist.begin (), termlist.end(), this)); |
213 | termlist.erase (find (termlist.begin (), termlist.end(), this)); |
214 | |
214 | |
215 | emergency_cleanup (); |
215 | emergency_cleanup (); |
216 | |
216 | |
… | |
… | |
487 | if (OPTION (Opt_scrollBar)) |
487 | if (OPTION (Opt_scrollBar)) |
488 | scrollBar.setIdle (); /* set existence for size calculations */ |
488 | scrollBar.setIdle (); /* set existence for size calculations */ |
489 | #endif |
489 | #endif |
490 | |
490 | |
491 | #if ENABLE_PERL |
491 | #if ENABLE_PERL |
|
|
492 | if (!rs[Rs_perl_ext_1]) |
|
|
493 | rs[Rs_perl_ext_1] = "default"; |
|
|
494 | |
492 | if (rs[Rs_perl_ext] && *rs[Rs_perl_ext]) |
495 | if ((rs[Rs_perl_ext_1] && *rs[Rs_perl_ext_1]) |
|
|
496 | || (rs[Rs_perl_ext_2] && *rs[Rs_perl_ext_2]) |
|
|
497 | || (rs[Rs_perl_eval] && *rs[Rs_perl_eval])) |
493 | { |
498 | { |
494 | rxvt_perl.init (); |
499 | rxvt_perl.init (); |
495 | PERL_INVOKE ((this, HOOK_INIT, DT_END)); |
500 | HOOK_INVOKE ((this, HOOK_INIT, DT_END)); |
496 | } |
501 | } |
497 | #endif |
502 | #endif |
498 | |
503 | |
499 | create_windows (argc, argv); |
504 | create_windows (argc, argv); |
500 | |
505 | |
… | |
… | |
532 | |
537 | |
533 | init_command (cmd_argv); |
538 | init_command (cmd_argv); |
534 | |
539 | |
535 | free (cmd_argv); |
540 | free (cmd_argv); |
536 | |
541 | |
|
|
542 | if (pty.pty >= 0) |
537 | pty_ev.start (pty.pty, EVENT_READ); |
543 | pty_ev.start (pty.pty, EVENT_READ); |
538 | |
544 | |
539 | check_ev.start (); |
545 | check_ev.start (); |
540 | |
546 | |
541 | PERL_INVOKE ((this, HOOK_START, DT_END)); |
547 | HOOK_INVOKE ((this, HOOK_START, DT_END)); |
542 | |
548 | |
543 | return true; |
549 | return true; |
544 | } |
550 | } |
545 | |
551 | |
546 | static struct sig_handlers |
552 | static struct sig_handlers |
… | |
… | |
1024 | i = atoi (color); |
1030 | i = atoi (color); |
1025 | |
1031 | |
1026 | if (i >= 8 && i <= 15) |
1032 | if (i >= 8 && i <= 15) |
1027 | { /* bright colors */ |
1033 | { /* bright colors */ |
1028 | i -= 8; |
1034 | i -= 8; |
1029 | # ifndef NO_BRIGHTCOLOR |
|
|
1030 | pix_colors_focused[idx] = pix_colors_focused[minBrightCOLOR + i]; |
1035 | pix_colors_focused[idx] = pix_colors_focused[minBrightCOLOR + i]; |
1031 | SET_PIXCOLOR (idx); |
1036 | SET_PIXCOLOR (idx); |
1032 | goto done; |
1037 | goto done; |
1033 | # endif |
|
|
1034 | } |
1038 | } |
1035 | |
1039 | |
1036 | if (i >= 0 && i <= 7) |
1040 | if (i >= 0 && i <= 7) |
1037 | { /* normal colors */ |
1041 | { /* normal colors */ |
1038 | pix_colors_focused[idx] = pix_colors_focused[minCOLOR + i]; |
1042 | pix_colors_focused[idx] = pix_colors_focused[minCOLOR + i]; |
… | |
… | |
1222 | } |
1226 | } |
1223 | |
1227 | |
1224 | if (menubar_visible ()) |
1228 | if (menubar_visible ()) |
1225 | XMoveResizeWindow (disp, menuBar.win, |
1229 | XMoveResizeWindow (disp, menuBar.win, |
1226 | window_vt_x, 0, |
1230 | window_vt_x, 0, |
1227 | TermWin_TotalWidth (), menuBar_TotalHeight ()); |
1231 | width, menuBar_TotalHeight ()); |
1228 | |
1232 | |
1229 | XMoveResizeWindow (disp, vt, |
1233 | XMoveResizeWindow (disp, vt, |
1230 | window_vt_x, window_vt_y, |
1234 | window_vt_x, window_vt_y, |
1231 | TermWin_TotalWidth (), TermWin_TotalHeight ()); |
1235 | width, height); |
1232 | |
1236 | |
1233 | scr_clear (); |
1237 | scr_clear (); |
1234 | #ifdef XPM_BACKGROUND |
1238 | #ifdef XPM_BACKGROUND |
1235 | resize_pixmap (); |
1239 | resize_pixmap (); |
1236 | #endif |
1240 | #endif |