ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/rxvt.h
(Generate patch)

Comparing rxvt-unicode/src/rxvt.h (file contents):
Revision 1.220 by root, Tue Jan 17 15:17:39 2006 UTC vs.
Revision 1.224 by root, Thu Jan 19 19:51:08 2006 UTC

93#ifndef STDIN_FILENO 93#ifndef STDIN_FILENO
94# define STDIN_FILENO 0 94# define STDIN_FILENO 0
95# define STDOUT_FILENO 1 95# define STDOUT_FILENO 1
96# define STDERR_FILENO 2 96# define STDERR_FILENO 2
97#endif 97#endif
98
99enum rxvt_privaction { IGNORE = 'i', SAVE = 's', RESTORE = 'r' };//TODO
100 98
101/* 99/*
102 ***************************************************************************** 100 *****************************************************************************
103 * PROTOTYPES 101 * PROTOTYPES
104 ***************************************************************************** 102 *****************************************************************************
108RETSIGTYPE rxvt_Exit_signal (int sig); 106RETSIGTYPE rxvt_Exit_signal (int sig);
109void rxvt_clean_exit (); 107void rxvt_clean_exit ();
110void * rxvt_malloc (size_t size); 108void * rxvt_malloc (size_t size);
111void * rxvt_calloc (size_t number, size_t size); 109void * rxvt_calloc (size_t number, size_t size);
112void * rxvt_realloc (void *ptr, size_t size); 110void * rxvt_realloc (void *ptr, size_t size);
113void rxvt_privileges (rxvt_privaction action);
114 111
115// util.C 112// util.C
116char * rxvt_wcstombs (const wchar_t *str, int len = -1); 113char * rxvt_wcstombs (const wchar_t *str, int len = -1);
117wchar_t * rxvt_mbstowcs (const char *str, int len = -1); 114wchar_t * rxvt_mbstowcs (const char *str, int len = -1);
118char * rxvt_wcstoutf8 (const wchar_t *str, int len = -1); 115char * rxvt_wcstoutf8 (const wchar_t *str, int len = -1);
184 { 181 {
185 // 182 //
186 } 183 }
187 184
188 virtual bool get () = 0; 185 virtual bool get () = 0;
186#if UTMP_SUPPORT
189 virtual void login (int cmd_pid, bool login_shell, const char *hostname) = 0; 187 virtual void login (int cmd_pid, bool login_shell, const char *hostname) = 0;
188#endif
190 189
191 void close_tty (); 190 void close_tty ();
192 bool make_controlling_tty (); 191 bool make_controlling_tty ();
193 void set_utf8_mode (bool on); 192 void set_utf8_mode (bool on);
194}; 193};
1185 xevent_watcher vt_ev; 1184 xevent_watcher vt_ev;
1186#ifdef HAVE_SCROLLBARS 1185#ifdef HAVE_SCROLLBARS
1187 xevent_watcher scrollbar_ev; 1186 xevent_watcher scrollbar_ev;
1188#endif 1187#endif
1189 1188
1189 void child_cb (child_watcher &w, int status); child_watcher child_ev;
1190 void check_cb (check_watcher &w); check_watcher check_ev; 1190 void check_cb (check_watcher &w); check_watcher check_ev;
1191 void destroy_cb (time_watcher &w); time_watcher destroy_ev; 1191 void destroy_cb (time_watcher &w); time_watcher destroy_ev;
1192 void flush_cb (time_watcher &w); time_watcher flush_ev; 1192 void flush_cb (time_watcher &w); time_watcher flush_ev;
1193 1193
1194 void pty_cb (io_watcher &w, short revents); io_watcher pty_ev; 1194 void pty_cb (io_watcher &w, short revents); io_watcher pty_ev;
1224 1224
1225 void tt_winch (); 1225 void tt_winch ();
1226 1226
1227 rxvt_term (); 1227 rxvt_term ();
1228 ~rxvt_term (); 1228 ~rxvt_term ();
1229 void child_exit (); // child has exited, usually destroys
1230 void destroy (); 1229 void destroy ();
1231 void emergency_cleanup (); 1230 void emergency_cleanup ();
1232 1231
1233 bool init (int argc, const char *const *argv); 1232 bool init (int argc, const char *const *argv);
1234 bool init_vars (); 1233 bool init_vars ();
1324 void process_graphics (); 1323 void process_graphics ();
1325 // init.C 1324 // init.C
1326 void Get_Colours (); 1325 void Get_Colours ();
1327 void get_ourmods (); 1326 void get_ourmods ();
1328 // main.C 1327 // main.C
1329 void privileged_utmp (rxvt_privaction action);
1330 bool set_fonts (); 1328 bool set_fonts ();
1331 void set_string_property (Atom prop, const char *str, int len = -1); 1329 void set_string_property (Atom prop, const char *str, int len = -1);
1332 void set_utf8_property (Atom prop, const char *str, int len = -1); 1330 void set_utf8_property (Atom prop, const char *str, int len = -1);
1333 void set_title (const char *str); 1331 void set_title (const char *str);
1334 void set_icon_name (const char *str); 1332 void set_icon_name (const char *str);
1427 rxvt_fontset *scr_find_fontset (rend_t r = DEFAULT_RSTYLE); 1425 rxvt_fontset *scr_find_fontset (rend_t r = DEFAULT_RSTYLE);
1428 void scr_recolour (); 1426 void scr_recolour ();
1429 void scr_remap_chars (); 1427 void scr_remap_chars ();
1430 void scr_remap_chars (line_t &l); 1428 void scr_remap_chars (line_t &l);
1431 1429
1430 enum cursor_mode { SAVE, RESTORE };
1431
1432 void scr_poweron (); 1432 void scr_poweron ();
1433 void scr_cursor (int mode); 1433 void scr_cursor (cursor_mode mode);
1434 void scr_do_wrap (); 1434 void scr_do_wrap ();
1435 int scr_change_screen (int scrn); 1435 int scr_change_screen (int scrn);
1436 void scr_color (unsigned int color, int fgbg); 1436 void scr_color (unsigned int color, int fgbg);
1437 void scr_rendition (int set, int style); 1437 void scr_rendition (int set, int style);
1438 void scr_add_lines (const wchar_t *str, int len, int minlines = 0); 1438 void scr_add_lines (const wchar_t *str, int len, int minlines = 0);
1465 void scr_reverse_selection (); 1465 void scr_reverse_selection ();
1466 void scr_dump (int fd); 1466 void scr_dump (int fd);
1467 void selection_check (int check_more); 1467 void selection_check (int check_more);
1468 void selection_paste (Window win, Atom prop, bool delete_prop); 1468 void selection_paste (Window win, Atom prop, bool delete_prop);
1469 void selection_property (Window win, Atom prop); 1469 void selection_property (Window win, Atom prop);
1470 void selection_request (Time tm, int x, int y); 1470 void selection_request (Time tm);
1471 int selection_request_other (Atom target, int selnum); 1471 int selection_request_other (Atom target, int selnum);
1472 void selection_clear (); 1472 void selection_clear ();
1473 void selection_make (Time tm); 1473 void selection_make (Time tm);
1474 bool selection_grab (Time tm); 1474 bool selection_grab (Time tm);
1475 void selection_start_colrow (int col, int row); 1475 void selection_start_colrow (int col, int row);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines