comparison src/w32console.c @ 16588:481b7874a1e9

Change identifiers of the form win32* to w32*.
author Geoff Voelker <voelker@cs.washington.edu>
date Tue, 19 Nov 1996 04:59:23 +0000
parents 769461738e5d
children 4ed80eda6fac
comparison
equal deleted inserted replaced
16587:13cda507257c 16588:481b7874a1e9
56 static void change_line_highlight (int, int, int); 56 static void change_line_highlight (int, int, int);
57 static void reassert_line_highlight (int, int); 57 static void reassert_line_highlight (int, int);
58 static void insert_glyphs (GLYPH *start, int len); 58 static void insert_glyphs (GLYPH *start, int len);
59 static void write_glyphs (GLYPH *string, int len); 59 static void write_glyphs (GLYPH *string, int len);
60 static void delete_glyphs (int n); 60 static void delete_glyphs (int n);
61 void nt_ring_bell (void); 61 void w32_sys_ring_bell (void);
62 static void reset_terminal_modes (void); 62 static void reset_terminal_modes (void);
63 static void set_terminal_modes (void); 63 static void set_terminal_modes (void);
64 static void set_terminal_window (int size); 64 static void set_terminal_window (int size);
65 static void update_begin (FRAME_PTR f); 65 static void update_begin (FRAME_PTR f);
66 static void update_end (FRAME_PTR f); 66 static void update_end (FRAME_PTR f);
191 fill.Char.AsciiChar = 0x20; 191 fill.Char.AsciiChar = 0x20;
192 fill.Attributes = char_attr; 192 fill.Attributes = char_attr;
193 193
194 ScrollConsoleScreenBuffer (cur_screen, &scroll, NULL, dest, &fill); 194 ScrollConsoleScreenBuffer (cur_screen, &scroll, NULL, dest, &fill);
195 195
196 /* Here we have to deal with a win32 console flake: If the scroll 196 /* Here we have to deal with a w32 console flake: If the scroll
197 region looks like abc and we scroll c to a and fill with d we get 197 region looks like abc and we scroll c to a and fill with d we get
198 cbd... if we scroll block c one line at a time to a, we get cdd... 198 cbd... if we scroll block c one line at a time to a, we get cdd...
199 Emacs expects cdd consistently... So we have to deal with that 199 Emacs expects cdd consistently... So we have to deal with that
200 here... (this also occurs scrolling the same way in the other 200 here... (this also occurs scrolling the same way in the other
201 direction. */ 201 direction. */
416 } 416 }
417 417
418 static unsigned int sound_type = 0xFFFFFFFF; 418 static unsigned int sound_type = 0xFFFFFFFF;
419 419
420 void 420 void
421 nt_ring_bell (void) 421 w32_sys_ring_bell (void)
422 { 422 {
423 if (sound_type == 0xFFFFFFFF) 423 if (sound_type == 0xFFFFFFFF)
424 Beep (666, 100); 424 Beep (666, 100);
425 else 425 else
426 MessageBeep (sound_type); 426 MessageBeep (sound_type);
552 change_line_highlight_hook = (term_hook) change_line_highlight; 552 change_line_highlight_hook = (term_hook) change_line_highlight;
553 reassert_line_highlight_hook = (term_hook) reassert_line_highlight; 553 reassert_line_highlight_hook = (term_hook) reassert_line_highlight;
554 insert_glyphs_hook = (term_hook) insert_glyphs; 554 insert_glyphs_hook = (term_hook) insert_glyphs;
555 write_glyphs_hook = (term_hook) write_glyphs; 555 write_glyphs_hook = (term_hook) write_glyphs;
556 delete_glyphs_hook = (term_hook) delete_glyphs; 556 delete_glyphs_hook = (term_hook) delete_glyphs;
557 ring_bell_hook = (term_hook) nt_ring_bell; 557 ring_bell_hook = (term_hook) w32_sys_ring_bell;
558 reset_terminal_modes_hook = (term_hook) reset_terminal_modes; 558 reset_terminal_modes_hook = (term_hook) reset_terminal_modes;
559 set_terminal_modes_hook = (term_hook) set_terminal_modes; 559 set_terminal_modes_hook = (term_hook) set_terminal_modes;
560 set_terminal_window_hook = (term_hook) set_terminal_window; 560 set_terminal_window_hook = (term_hook) set_terminal_window;
561 update_begin_hook = (term_hook) update_begin; 561 update_begin_hook = (term_hook) update_begin;
562 update_end_hook = (term_hook) update_end; 562 update_end_hook = (term_hook) update_end;
563 563
564 read_socket_hook = win32_read_socket; 564 read_socket_hook = w32_console_read_socket;
565 mouse_position_hook = win32_mouse_position; 565 mouse_position_hook = w32_mouse_position;
566 566
567 prev_screen = GetStdHandle (STD_OUTPUT_HANDLE); 567 prev_screen = GetStdHandle (STD_OUTPUT_HANDLE);
568 568
569 set_terminal_modes (); 569 set_terminal_modes ();
570 570