… | |
… | |
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; |
… | |
… | |
214 | virtual ~rxvt_ptytty () |
215 | virtual ~rxvt_ptytty () |
215 | { |
216 | { |
216 | } |
217 | } |
217 | |
218 | |
218 | virtual bool get () = 0; |
219 | virtual bool get () = 0; |
219 | #if UTMP_SUPPORT |
|
|
220 | 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; |
221 | #endif |
|
|
222 | |
221 | |
223 | void close_tty (); |
222 | void close_tty (); |
224 | bool make_controlling_tty (); |
223 | bool make_controlling_tty (); |
225 | void set_utf8_mode (bool on); |
224 | void set_utf8_mode (bool on); |
226 | }; |
225 | }; |
… | |
… | |
1237 | rxvt_term (); |
1236 | rxvt_term (); |
1238 | ~rxvt_term (); |
1237 | ~rxvt_term (); |
1239 | void destroy (); |
1238 | void destroy (); |
1240 | void emergency_cleanup (); |
1239 | void emergency_cleanup (); |
1241 | |
1240 | |
1242 | 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 | |
1243 | bool init_vars (); |
1249 | bool init_vars (); |
1244 | |
1250 | |
1245 | bool pty_fill (); |
1251 | bool pty_fill (); |
1246 | |
1252 | |
1247 | void make_current () const // make this the "currently active" urxvt instance |
1253 | void make_current () const // make this the "currently active" urxvt instance |