- Timestamp:
- Jan 12, 2013, 1:43:13 PM (11 years ago)
- Children:
- e3a0d71, 4485285
- Parents:
- 4626016
- git-author:
- Jason Gross <jgross@mit.edu> (01/12/13 13:13:18)
- git-committer:
- Jason Gross <jgross@mit.edu> (01/12/13 13:43:13)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
owl.c
r4d9e311c r7869e48 311 311 char utf8buf[7]; 312 312 memset(utf8buf, '\0', 7); 313 313 314 314 utf8buf[0] = j.ch; 315 315 316 316 if ((j.ch & 0xc0) && (~j.ch & 0x20)) bytes = 2; 317 317 else if ((j.ch & 0xe0) && (~j.ch & 0x10)) bytes = 3; … … 320 320 else if ((j.ch & 0xfc) && (~j.ch & 0x02)) bytes = 6; 321 321 else bytes = 1; 322 322 323 323 for (i = 1; i < bytes; i++) { 324 324 int tmp = wgetch(g->input_pad); … … 333 333 utf8buf[i] = tmp; 334 334 } 335 335 336 336 if (j.ch != ERR) { 337 337 if (g_utf8_validate(utf8buf, -1, NULL)) { … … 376 376 /* Send a message to the main thread. */ 377 377 owl_select_post_task(sig_handler_main_thread, 378 GINT_TO_POINTER(siginfo->si_signo), 378 GINT_TO_POINTER(siginfo->si_signo), 379 379 NULL, g_main_context_default()); 380 380 } … … 421 421 #if OWL_STDERR_REDIR 422 422 423 /* Replaces stderr with a pipe so that we can read from it. 423 /* Replaces stderr with a pipe so that we can read from it. 424 424 * Returns the fd of the pipe from which stderr can be read. */ 425 425 int stderr_replace(void)
Note: See TracChangeset
for help on using the changeset viewer.