… | |
… | |
32 | |
32 | |
33 | #include "../config.h" /* NECESSARY */ |
33 | #include "../config.h" /* NECESSARY */ |
34 | #include "rxvt.h" /* NECESSARY */ |
34 | #include "rxvt.h" /* NECESSARY */ |
35 | #include "main.intpro" /* PROTOS for internal routines */ |
35 | #include "main.intpro" /* PROTOS for internal routines */ |
36 | |
36 | |
37 | #include <signal.h> |
37 | #include <csignal> |
38 | |
38 | |
39 | #ifdef TTY_GID_SUPPORT |
39 | #ifdef TTY_GID_SUPPORT |
40 | # include <grp.h> |
40 | # include <grp.h> |
41 | #endif |
41 | #endif |
42 | |
42 | |
… | |
… | |
259 | free (env_windowid); |
259 | free (env_windowid); |
260 | free (env_display); |
260 | free (env_display); |
261 | free (env_term); |
261 | free (env_term); |
262 | free (env_colorfgbg); |
262 | free (env_colorfgbg); |
263 | free (locale); |
263 | free (locale); |
|
|
264 | free (v_buffer); |
264 | free (incr_buf); |
265 | free (incr_buf); |
265 | |
266 | |
266 | delete envv; |
267 | delete envv; |
267 | delete argv; |
268 | delete argv; |
268 | } |
269 | } |
… | |
… | |
859 | void |
860 | void |
860 | rxvt_term::set_title (const char *str) |
861 | rxvt_term::set_title (const char *str) |
861 | { |
862 | { |
862 | set_string_property (XA_WM_NAME, str); |
863 | set_string_property (XA_WM_NAME, str); |
863 | #if ENABLE_FRILLS |
864 | #if ENABLE_FRILLS |
864 | set_utf8_property (display->atom ("_NET_WM_NAME"), str); |
865 | set_utf8_property (xa[XA_NET_WM_NAME], str); |
865 | #endif |
866 | #endif |
866 | } |
867 | } |
867 | |
868 | |
868 | void |
869 | void |
869 | rxvt_term::set_icon_name (const char *str) |
870 | rxvt_term::set_icon_name (const char *str) |
870 | { |
871 | { |
871 | set_string_property (XA_WM_ICON_NAME, str); |
872 | set_string_property (XA_WM_ICON_NAME, str); |
872 | #if ENABLE_FRILLS |
873 | #if ENABLE_FRILLS |
873 | set_utf8_property (display->atom ("_NET_WM_ICON_NAME"), str); |
874 | set_utf8_property (xa[XA_NET_WM_ICON_NAME], str); |
874 | #endif |
875 | #endif |
875 | } |
876 | } |
876 | |
877 | |
877 | #ifdef XTERM_COLOR_CHANGE |
878 | #ifdef XTERM_COLOR_CHANGE |
878 | void |
879 | void |
… | |
… | |
997 | |
998 | |
998 | sprintf (env_colorfgbg, "COLORFGBG=%s;%s%s", fstr, xpmb, bstr); |
999 | sprintf (env_colorfgbg, "COLORFGBG=%s;%s%s", fstr, xpmb, bstr); |
999 | } |
1000 | } |
1000 | |
1001 | |
1001 | /*----------------------------------------------------------------------*/ |
1002 | /*----------------------------------------------------------------------*/ |
1002 | /* |
|
|
1003 | * Colour determination for low colour displays, routine from |
|
|
1004 | * Hans de Goede <hans@highrise.nl> |
|
|
1005 | */ |
|
|
1006 | |
1003 | |
1007 | int |
1004 | int |
1008 | rxvt_term::rXParseAllocColor (rxvt_color *screen_in_out, const char *colour) |
1005 | rxvt_term::rXParseAllocColor (rxvt_color *screen_in_out, const char *colour) |
1009 | { |
1006 | { |
1010 | if (!screen_in_out->set (display, colour)) |
1007 | if (!screen_in_out->set (display, colour)) |