Mercurial > emacs
comparison src/w32console.c @ 110994:734b2470f93c
src/w32*.c: Whitespace fixes and typos.
author | Juanma Barranquero <lekktu@gmail.com> |
---|---|
date | Thu, 14 Oct 2010 14:25:35 +0200 |
parents | 1d1d5d9bd884 |
children | 376148b31b5e |
comparison
equal
deleted
inserted
replaced
110993:00e4f2600720 | 110994:734b2470f93c |
---|---|
284 { | 284 { |
285 w32con_clear_end_of_line (f, cursor_coords.X + len); | 285 w32con_clear_end_of_line (f, cursor_coords.X + len); |
286 } | 286 } |
287 } | 287 } |
288 | 288 |
289 extern unsigned char *encode_terminal_code P_ ((struct glyph *, int, | 289 extern unsigned char *encode_terminal_code P_ ((struct glyph *, int, |
290 struct coding_system *)); | 290 struct coding_system *)); |
291 | 291 |
292 static void | 292 static void |
293 w32con_write_glyphs (struct frame *f, register struct glyph *string, | 293 w32con_write_glyphs (struct frame *f, register struct glyph *string, |
294 register int len) | 294 register int len) |
436 | 436 |
437 FillConsoleOutputAttribute (cur_screen, char_attr_normal, n, dest, &r); | 437 FillConsoleOutputAttribute (cur_screen, char_attr_normal, n, dest, &r); |
438 FillConsoleOutputCharacter (cur_screen, ' ', n, dest, &r); | 438 FillConsoleOutputCharacter (cur_screen, ' ', n, dest, &r); |
439 /* Now that the screen is clear, put the cursor at the top. */ | 439 /* Now that the screen is clear, put the cursor at the top. */ |
440 SetConsoleCursorPosition (cur_screen, dest); | 440 SetConsoleCursorPosition (cur_screen, dest); |
441 | 441 |
442 #ifdef USE_SEPARATE_SCREEN | 442 #ifdef USE_SEPARATE_SCREEN |
443 SetConsoleActiveScreenBuffer (prev_screen); | 443 SetConsoleActiveScreenBuffer (prev_screen); |
444 #else | 444 #else |
445 SetConsoleCursorInfo (prev_screen, &prev_console_cursor); | 445 SetConsoleCursorInfo (prev_screen, &prev_console_cursor); |
446 #endif | 446 #endif |
560 { | 560 { |
561 CONSOLE_SCREEN_BUFFER_INFO info; | 561 CONSOLE_SCREEN_BUFFER_INFO info; |
562 | 562 |
563 term->rif = 0; /* No window based redisplay on the console. */ | 563 term->rif = 0; /* No window based redisplay on the console. */ |
564 term->cursor_to_hook = w32con_move_cursor; | 564 term->cursor_to_hook = w32con_move_cursor; |
565 term->raw_cursor_to_hook = w32con_move_cursor; | 565 term->raw_cursor_to_hook = w32con_move_cursor; |
566 term->clear_to_end_hook = w32con_clear_to_end; | 566 term->clear_to_end_hook = w32con_clear_to_end; |
567 term->clear_frame_hook = w32con_clear_frame; | 567 term->clear_frame_hook = w32con_clear_frame; |
568 term->clear_end_of_line_hook = w32con_clear_end_of_line; | 568 term->clear_end_of_line_hook = w32con_clear_end_of_line; |
569 term->ins_del_lines_hook = w32con_ins_del_lines; | 569 term->ins_del_lines_hook = w32con_ins_del_lines; |
570 term->insert_glyphs_hook = w32con_insert_glyphs; | 570 term->insert_glyphs_hook = w32con_insert_glyphs; |
571 term->write_glyphs_hook = w32con_write_glyphs; | 571 term->write_glyphs_hook = w32con_write_glyphs; |
572 term->delete_glyphs_hook = w32con_delete_glyphs; | 572 term->delete_glyphs_hook = w32con_delete_glyphs; |
573 term->ring_bell_hook = w32_sys_ring_bell; | 573 term->ring_bell_hook = w32_sys_ring_bell; |
574 term->reset_terminal_modes_hook = w32con_reset_terminal_modes; | 574 term->reset_terminal_modes_hook = w32con_reset_terminal_modes; |
575 term->set_terminal_modes_hook = w32con_set_terminal_modes; | 575 term->set_terminal_modes_hook = w32con_set_terminal_modes; |
576 term->set_terminal_window_hook = w32con_set_terminal_window; | 576 term->set_terminal_window_hook = w32con_set_terminal_window; |
577 term->update_begin_hook = w32con_update_begin; | 577 term->update_begin_hook = w32con_update_begin; |
578 term->update_end_hook = w32con_update_end; | 578 term->update_end_hook = w32con_update_end; |
579 | 579 |
580 term->read_socket_hook = w32_console_read_socket; | 580 term->read_socket_hook = w32_console_read_socket; |
581 term->mouse_position_hook = w32_console_mouse_position; | 581 term->mouse_position_hook = w32_console_mouse_position; |
582 | 582 |
616 GetConsoleCursorInfo (prev_screen, &prev_console_cursor); | 616 GetConsoleCursorInfo (prev_screen, &prev_console_cursor); |
617 #endif | 617 #endif |
618 | 618 |
619 /* Respect setting of LINES and COLUMNS environment variables. */ | 619 /* Respect setting of LINES and COLUMNS environment variables. */ |
620 { | 620 { |
621 char * lines = getenv("LINES"); | 621 char * lines = getenv ("LINES"); |
622 char * columns = getenv("COLUMNS"); | 622 char * columns = getenv ("COLUMNS"); |
623 | 623 |
624 if (lines != NULL && columns != NULL) | 624 if (lines != NULL && columns != NULL) |
625 { | 625 { |
626 SMALL_RECT new_win_dims; | 626 SMALL_RECT new_win_dims; |
627 COORD new_size; | 627 COORD new_size; |