… | |
… | |
141 | // misc.C |
141 | // misc.C |
142 | char * rxvt_wcstombs (const wchar_t *str, int len = -1); |
142 | char * rxvt_wcstombs (const wchar_t *str, int len = -1); |
143 | wchar_t * rxvt_mbstowcs (const char *str, int len = -1); |
143 | wchar_t * rxvt_mbstowcs (const char *str, int len = -1); |
144 | char * rxvt_wcstoutf8 (const wchar_t *str, int len = -1); |
144 | char * rxvt_wcstoutf8 (const wchar_t *str, int len = -1); |
145 | wchar_t * rxvt_utf8towcs (const char *str, int len = -1); |
145 | wchar_t * rxvt_utf8towcs (const char *str, int len = -1); |
|
|
146 | char * rxvt_strdup_cpp (const char *str); |
146 | |
147 | |
147 | #define rxvt_strdup(s) ((s) ? strdup(s) : 0) |
148 | #define rxvt_strdup(s) ((s) ? strdup(s) : 0) |
148 | |
149 | |
149 | char * rxvt_r_basename (const char *str) NOTHROW; |
150 | char * rxvt_r_basename (const char *str) NOTHROW; |
150 | void rxvt_vlog (const char *fmt, va_list arg_ptr) NOTHROW; |
151 | void rxvt_vlog (const char *fmt, va_list arg_ptr) NOTHROW; |
… | |
… | |
158 | char * rxvt_Str_trim (char *str) NOTHROW; |
159 | char * rxvt_Str_trim (char *str) NOTHROW; |
159 | int rxvt_Str_escaped (char *str) NOTHROW; |
160 | int rxvt_Str_escaped (char *str) NOTHROW; |
160 | char ** rxvt_splitcommastring (const char *cs) NOTHROW; |
161 | char ** rxvt_splitcommastring (const char *cs) NOTHROW; |
161 | void rxvt_freecommastring (char **cs) NOTHROW; |
162 | void rxvt_freecommastring (char **cs) NOTHROW; |
162 | char * rxvt_File_find (const char *file, const char *ext, const char *path) NOTHROW; |
163 | char * rxvt_File_find (const char *file, const char *ext, const char *path) NOTHROW; |
163 | void rxvt_usleep (int usecs) NOTHROW; |
|
|
164 | |
164 | |
165 | ///////////////////////////////////////////////////////////////////////////// |
165 | ///////////////////////////////////////////////////////////////////////////// |
166 | |
166 | |
167 | // temporarily replace the process environment |
167 | // temporarily replace the process environment |
168 | extern char **environ; |
168 | extern char **environ; |
… | |
… | |
215 | virtual ~rxvt_ptytty () |
215 | virtual ~rxvt_ptytty () |
216 | { |
216 | { |
217 | } |
217 | } |
218 | |
218 | |
219 | virtual bool get () = 0; |
219 | virtual bool get () = 0; |
220 | #if UTMP_SUPPORT |
|
|
221 | virtual void login (int cmd_pid, bool login_shell, const char *hostname) = 0; |
220 | virtual void login (int cmd_pid, bool login_shell, const char *hostname) = 0; |
222 | #endif |
|
|
223 | |
221 | |
224 | void close_tty (); |
222 | void close_tty (); |
225 | bool make_controlling_tty (); |
223 | bool make_controlling_tty (); |
226 | void set_utf8_mode (bool on); |
224 | void set_utf8_mode (bool on); |
227 | }; |
225 | }; |
… | |
… | |
1020 | #endif |
1018 | #endif |
1021 | scrollbar_align, |
1019 | scrollbar_align, |
1022 | selection_wait, |
1020 | selection_wait, |
1023 | selection_type; |
1021 | selection_type; |
1024 | /* ---------- */ |
1022 | /* ---------- */ |
|
|
1023 | bool rvideo_state, rvideo_mode; |
|
|
1024 | #ifndef NO_BELL |
1025 | short rvideo; |
1025 | bool rvideo_bell; |
|
|
1026 | #endif |
1026 | int num_scr; /* screen: number lines scrolled */ |
1027 | int num_scr; /* screen: number lines scrolled */ |
1027 | int prev_ncol, /* screen: previous number of columns */ |
1028 | int prev_ncol, /* screen: previous number of columns */ |
1028 | prev_nrow; /* screen: previous number of rows */ |
1029 | prev_nrow; /* screen: previous number of rows */ |
1029 | /* ---------- */ |
1030 | /* ---------- */ |
1030 | rend_t rstyle; |
1031 | rend_t rstyle; |
… | |
… | |
1195 | |
1196 | |
1196 | void child_cb (child_watcher &w, int status); child_watcher child_ev; |
1197 | void child_cb (child_watcher &w, int status); child_watcher child_ev; |
1197 | void check_cb (check_watcher &w); check_watcher check_ev; |
1198 | void check_cb (check_watcher &w); check_watcher check_ev; |
1198 | void destroy_cb (time_watcher &w); time_watcher destroy_ev; |
1199 | void destroy_cb (time_watcher &w); time_watcher destroy_ev; |
1199 | void flush_cb (time_watcher &w); time_watcher flush_ev; |
1200 | void flush_cb (time_watcher &w); time_watcher flush_ev; |
1200 | |
|
|
1201 | void pty_cb (io_watcher &w, short revents); io_watcher pty_ev; |
1201 | void pty_cb (io_watcher &w, short revents); io_watcher pty_ev; |
1202 | |
|
|
1203 | void incr_cb (time_watcher &w) NOTHROW; time_watcher incr_ev; |
1202 | void incr_cb (time_watcher &w) NOTHROW; time_watcher incr_ev; |
1204 | |
1203 | |
1205 | #ifdef CURSOR_BLINK |
1204 | #ifdef CURSOR_BLINK |
1206 | void cursor_blink_cb (time_watcher &w); time_watcher cursor_blink_ev; |
1205 | void cursor_blink_cb (time_watcher &w); time_watcher cursor_blink_ev; |
1207 | #endif |
1206 | #endif |
1208 | #ifdef TEXT_BLINK |
1207 | #ifdef TEXT_BLINK |
1209 | void text_blink_cb (time_watcher &w); time_watcher text_blink_ev; |
1208 | void text_blink_cb (time_watcher &w); time_watcher text_blink_ev; |
|
|
1209 | #endif |
|
|
1210 | #ifndef NO_BELL |
|
|
1211 | void bell_cb (time_watcher &w); time_watcher bell_ev; |
1210 | #endif |
1212 | #endif |
1211 | |
1213 | |
1212 | #ifndef NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING |
1214 | #ifndef NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING |
1213 | void cont_scroll_cb (time_watcher &w); time_watcher cont_scroll_ev; |
1215 | void cont_scroll_cb (time_watcher &w); time_watcher cont_scroll_ev; |
1214 | #endif |
1216 | #endif |
… | |
… | |
1234 | rxvt_term (); |
1236 | rxvt_term (); |
1235 | ~rxvt_term (); |
1237 | ~rxvt_term (); |
1236 | void destroy (); |
1238 | void destroy (); |
1237 | void emergency_cleanup (); |
1239 | void emergency_cleanup (); |
1238 | |
1240 | |
1239 | bool init (int argc, const char *const *argv); |
1241 | bool init (int argc, const char *const *argv, stringvec *envv); |
|
|
1242 | |
|
|
1243 | bool init (stringvec *argv, stringvec *envv) |
|
|
1244 | { |
|
|
1245 | this->argv = argv; |
|
|
1246 | return init (argv->size (), argv->begin (), envv); |
|
|
1247 | } |
|
|
1248 | |
1240 | bool init_vars (); |
1249 | bool init_vars (); |
1241 | |
1250 | |
1242 | bool pty_fill (); |
1251 | bool pty_fill (); |
1243 | |
1252 | |
1244 | void make_current () const // make this the "currently active" urxvt instance |
1253 | void make_current () const // make this the "currently active" urxvt instance |
… | |
… | |
1447 | void scr_cursor_visible (int mode) NOTHROW; |
1456 | void scr_cursor_visible (int mode) NOTHROW; |
1448 | void scr_autowrap (int mode) NOTHROW; |
1457 | void scr_autowrap (int mode) NOTHROW; |
1449 | void scr_relative_origin (int mode) NOTHROW; |
1458 | void scr_relative_origin (int mode) NOTHROW; |
1450 | void scr_insert_mode (int mode) NOTHROW; |
1459 | void scr_insert_mode (int mode) NOTHROW; |
1451 | void scr_set_tab (int mode) NOTHROW; |
1460 | void scr_set_tab (int mode) NOTHROW; |
1452 | void scr_rvideo_mode (int mode) NOTHROW; |
1461 | void scr_rvideo_mode (bool on) NOTHROW; |
1453 | void scr_report_position () NOTHROW; |
1462 | void scr_report_position () NOTHROW; |
1454 | void set_font_style () NOTHROW; |
1463 | void set_font_style () NOTHROW; |
1455 | void scr_charset_choose (int set) NOTHROW; |
1464 | void scr_charset_choose (int set) NOTHROW; |
1456 | void scr_charset_set (int set, unsigned int ch) NOTHROW; |
1465 | void scr_charset_set (int set, unsigned int ch) NOTHROW; |
1457 | void scr_move_to (int y, int len) NOTHROW; |
1466 | void scr_move_to (int y, int len) NOTHROW; |