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

Comparing rxvt-unicode/src/main.C (file contents):
Revision 1.34 by pcg, Fri Feb 20 22:27:27 2004 UTC vs.
Revision 1.38 by pcg, Sat Feb 21 21:43:37 2004 UTC

1/*--------------------------------*-C-*---------------------------------* 1/*--------------------------------*-C-*---------------------------------*;
2 * File: main.c 2 * File: main.c
3 *----------------------------------------------------------------------* 3 *----------------------------------------------------------------------*
4 * 4 *
5 * All portions of code are copyright by their respective author/s. 5 * All portions of code are copyright by their respective author/s.
6 * Copyright (c) 1992 John Bovey, University of Kent at Canterbury <jdb@ukc.ac.uk> 6 * Copyright (c) 1992 John Bovey, University of Kent at Canterbury <jdb@ukc.ac.uk>
90 text_blink_ev (this, &rxvt_term::text_blink_cb), 90 text_blink_ev (this, &rxvt_term::text_blink_cb),
91#endif 91#endif
92#ifdef POINTER_BLANK 92#ifdef POINTER_BLANK
93 pointer_ev (this, &rxvt_term::pointer_cb), 93 pointer_ev (this, &rxvt_term::pointer_cb),
94#endif 94#endif
95#ifdef USE_XIM
96 im_ev (this, &rxvt_term::im_cb),
97#endif
95 check_ev (this, &rxvt_term::check_cb), 98 check_ev (this, &rxvt_term::check_cb),
96 destroy_ev (this, &rxvt_term::destroy_cb), 99 destroy_ev (this, &rxvt_term::destroy_cb),
97 pty_ev (this, &rxvt_term::pty_cb), 100 pty_ev (this, &rxvt_term::pty_cb),
98 incr_ev (this, &rxvt_term::incr_cb), 101 incr_ev (this, &rxvt_term::incr_cb)
99#ifdef USE_XIM
100 im_ev (this, &rxvt_term::im_cb)
101#endif
102{ 102{
103 cmdbuf_ptr = cmdbuf_endp = cmdbuf_base; 103 cmdbuf_ptr = cmdbuf_endp = cmdbuf_base;
104} 104}
105 105
106rxvt_term::~rxvt_term () 106rxvt_term::~rxvt_term ()
265 scr_reset (); /* initialize screen */ 265 scr_reset (); /* initialize screen */
266#ifdef RXVT_GRAPHICS 266#ifdef RXVT_GRAPHICS
267 Gr_reset (); /* reset graphics */ 267 Gr_reset (); /* reset graphics */
268#endif 268#endif
269 269
270#if 1 270#if 0
271 XSynchronize (display->display, True); 271 XSynchronize (display->display, True);
272#endif 272#endif
273 273
274#ifdef HAVE_SCROLLBARS 274#ifdef HAVE_SCROLLBARS
275 if (Options & Opt_scrollBar) 275 if (Options & Opt_scrollBar)
1314 if (Input_Context) 1314 if (Input_Context)
1315 return; 1315 return;
1316 1316
1317#if defined(HAVE_XSETLOCALE) || defined(HAVE_SETLOCALE) 1317#if defined(HAVE_XSETLOCALE) || defined(HAVE_SETLOCALE)
1318 if (rs[Rs_imLocale]) 1318 if (rs[Rs_imLocale])
1319 setlocale (LC_CTYPE, rs[Rs_imLocale]); 1319 SET_LOCALE (rs[Rs_imLocale]);
1320#endif 1320#endif
1321 1321
1322 p = rs[Rs_inputMethod]; 1322 p = rs[Rs_inputMethod];
1323 if (p && *p) 1323 if (p && *p)
1324 { 1324 {
1355 goto done; 1355 goto done;
1356 1356
1357done: 1357done:
1358#if defined(HAVE_XSETLOCALE) || defined(HAVE_SETLOCALE) 1358#if defined(HAVE_XSETLOCALE) || defined(HAVE_SETLOCALE)
1359 if (rs[Rs_imLocale]) 1359 if (rs[Rs_imLocale])
1360 setlocale (LC_CTYPE, locale); 1360 SET_LOCALE (locale);
1361#endif 1361#endif
1362} 1362}
1363 1363
1364void 1364void
1365rxvt_term::IMSetStatusPosition () 1365rxvt_term::IMSetStatusPosition ()

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines