(screen_old_address, screen_virtual_segment,
screen_virtual_offset): New variables.
(dosv_refresh_virtual_screen): New function.
(dos_direct_output, dos_set_window_size, IT_write_glyphs,
IT_clear_end_of_line, IT_clear_screen, IT_display_cursor,
IT_reset_terminal_modes, XMenuActivate, abort): Call
dosv_refresh_virtual_screen if under DOS/V.
(IT_set_terminal_modes): If under DOS/V, update the address of
primary screen buffer.
(internal_terminal_init): Zero out screen_old_address, in case
Emacs was dumped under DOS/V.
(dos_get_saved_screen): Return failure indication if no screen was
saved.
Clear the mouse-moved flag for all frames. Update last mouse
position.
(IT_set_menu_bar_lines): Remove.
(x_set_menu_bar_lines): Call `set_menu_bar_line' (from frame.c)
instead of duplicating its code.
(IT_set_frame_parameters): Support the `title' and `reverse'
properties.
(maybe_enable_blinking): New function, restores the original state
of the blink bit.
(IT_reset_terminal_modes): Restore the original state of the blink
bit when suspending/exiting.
(run_msdos_command): Make sure bright background colors are again
enabled after subsidiary program returns.
for international keyboard support.
(dos_get_modifiers): If international keyboard support is NOT
required, make both Right and Left Alt key behave like Meta key.
writing characters to the screen.
(SCREEN_SET_CURSOR): Remove.
(IT_display_cursor): New function, to turn the cursor on and off.
(IT_cmgoto): New function, sets the cursor to its final position
whenever frame update is complete.
(internal_terminal_init): Set IT_cmgoto as the hook to be called
when frame is up to date.
(dos_rawgetc): Call IT_cmgoto instead of the SCREEN_SET_CURSOR
macro (which is gone now).
(XMenuActivate): Turn off the cursor while the menu is displayed,
to prevent it from showing through the menu panes.
(unixtodos_filename): Downcase the drive letter.
(init_environment): Downcase the pathnames in the environment only when
running on caseless filesystems.
(x_set_menu_bar_lines): New function, copied from xfns.c.
(IT_set_frame_parameters): Use selected_frame instead of
the_only_frame.
(internal_terminal_init): Use selected_frame instead of the_only_frame.
(check_x): New function, replacing macro in msdos.h.
(XMenuActivate): Use selected_frame instead of
the_only_frame. Don't let the title for the "Buffers" popup
include a number when it is split into several menus.
(dos_set_window_size): Move code to `bright_bg'.
(IT_set_terminal_modes): Enable bright background colors.
(IT_set_frame_parameters): Don't mask bright color bit in
background colors. Record colors on `termscript' file.
(internal_terminal_init): Enable bright background colors. Fix
default colors setting from $EMACSCOLORS.
(getdefdir): Rewrite to call `_fixpath' instead of `intdos'.
(run_msdos_command) [DJGPP > 1]: Work around some MSDOS
command-line restrictions by running shell commands via `system'
instead of `spawnve'.
(__write) [DJGPP == 2.0]: New function, avoids
calling `malloc' while writing to a text file, so that buffer
text being written won't be relocated.
(abort) [DJGPP > 1]: Generate traceback, to identify the abort cause.
(_crt0_startup_flags): Initialize it.
(internal_terminal_init): Change handling of EMACSCOLORS.
(init_environment): Call tzset, not init_gettimeofday.
(ctrl_break_vector, ctrl_break_regs): Don't define if DJGPP v2.
(ctrl_break_func, install_ctrl_break_check): Don't define if DJGPP v2.
(dos_ttraw) [DJGPP v2]: Don't call install_ctrl_break_check.
Call setmode at the end and exit.
(dos_ttcooked): Call setmode at the end and exit.
(gethostname, gettimeofday): Don't define if DJGPP v2.
(alarm, fork, kill, nicr, pause, sigsetask): Don't define if DJGPP v2.
simultaneous click/drag of `Mouse-1' and `Mouse-2'.
(dos_set_window_size): Make the window size change
faster for standard sizes. Fix a bug in v2-specific code to
change window size.
feature; call `display-time-filter' from time.el to display time
on the modeline instead. This makes `display-time' work under DOS.
(abort): use our own function instead of the one from the library
which reverts the console device to cooked mode.
(syms_of_msdos): `dos-display-time'--a new variable for
communicating with `display-time'.
byte at startup, write saved screen dimensions to termscript
file.
(IT_reset_terminal_modes): When restoring startup screen contents,
only restore as much as was saved, and only as much as the screen
dimensions on exit can hold. Blank the rest with the background
color saved at startup. Write restored screen dimensions to
termscript file.