1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-25 06:50:46 -08:00
Commit graph

84 commits

Author SHA1 Message Date
Eli Zaretskii
039274cfc0 Support for Japanese display on DOS/V systems.
(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.
1997-11-10 14:49:40 +00:00
Eli Zaretskii
211c7152ab (mouse_get_pos): Remove reduntant call to `int86'.
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.
1997-10-13 16:40:24 +00:00
Richard M. Stallman
c6a6499f7d Switch to raw-text as coding system. 1997-09-11 17:51:36 +00:00
Richard M. Stallman
4e82508479 (syms_of_msdos): Intern background-color and
foreground-color, and staticpro them.
(IT_set_frame_parameters): Use Qforeground_color and
Qbackground_color.
1997-09-11 01:27:57 +00:00
Eli Zaretskii
0e5c5ac0f8 Add coding: tag, to prevent Emacs from interpreting binary strings. 1997-08-28 09:30:01 +00:00
Eli Zaretskii
c19bb1de29 (syms_of_msdos): Define and bind x-bitmap-file-path and
delete-exited-processes, to prevent cus-start.el from
complaining.
1997-08-13 12:46:21 +00:00
Richard M. Stallman
5d7e834555 (init_environment): Set Emacs root directory properly when
the executable is in its `src' subdirectory, as under a debugger.
(IT_set_face): If termscript is in use, print the number of the
face as well.
1997-08-11 21:44:08 +00:00
Richard M. Stallman
db72273572 (IT_set_frame_parameters): Actually store the frame
parameters in the frame parameters' alist.
1997-08-11 21:40:57 +00:00
Richard M. Stallman
e9fbf17cde (Qbackground_color, Qforeground_color): Define vars. 1997-08-11 00:20:14 +00:00
Eli Zaretskii
917e56592f dos_rawgetc: When international keyboard doesn't have
to be supported, recognize Alt-key combinations even if the Alt
key is no longer pressed.
1997-02-02 15:41:27 +00:00
Eli Zaretskii
a7cf915174 (run_msdos_command): Remove unused variables.
(crlf_to_lf): Remove unused variables.
(Fmsdos_downcase_filename): Remove unused variable.
(IT_set_frame_parameters): Declare prototypes for external functions.
(IT_set_frame_parameters): Correct format specifier.
(IT_set_terminal_modes): Remove unused variable.
(top level): Add header files which declare used functions.
1997-01-21 17:41:30 +00:00
Eli Zaretskii
417a04bb04 * (sigprocmask, sig_suspender): New functions, implement
signal blocking on MSDOS.
1997-01-16 12:50:00 +00:00
Eli Zaretskii
bf8360aed2 * (XMenuActivate): Don't allow non-positive menu
coordinates.
1997-01-16 12:20:49 +00:00
Richard M. Stallman
b36701cc09 (bright_bg): Save the original state of video blink bit.
(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.
1997-01-06 21:23:25 +00:00
Richard M. Stallman
695a5c4976 (dos_set_keyboard): Test whether KEYB.COM is installed
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.
1996-12-27 02:11:22 +00:00
Karl Heuer
d6a12f42bc (IT_cmgoto): Don't update FRAME_CURSOR_X when the cursor
is in echo area.
1996-12-06 23:21:53 +00:00
Karl Heuer
fc171623b4 [__DJGPP__ >= 2] (dos_direct_output): Faster method of
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.
1996-11-19 07:42:09 +00:00
Richard M. Stallman
22819cd94f [__DJGPP_MINOR__ == 0] (_rename): New function, a
substitute for library low-level file-renaming function which
works around Windows 95 bug.
1996-11-06 19:51:38 +00:00
Richard M. Stallman
a878555182 (run_msdos_command): When testing whether a shell
belongs to the MSDOS family, convert its name to lower-case.
1996-09-24 19:40:24 +00:00
Richard M. Stallman
3280297aac (IT_set_menu_bar_lines): Clear last_overlay_modified field. 1996-09-16 06:31:45 +00:00
Karl Heuer
3c8feb4a20 (IT_menu_display): Display control characters as ^X.
(XMenuAddPane, XMenuAddSelection): Adjust menu width for control
characters (displayed as ^X).
1996-07-07 22:40:53 +00:00
Miles Bader
e2643e3e87 (dostounix_filename): On caseless filesystems, downcase the filename.
(unixtodos_filename): Downcase the drive letter.
(init_environment): Downcase the pathnames in the environment only when
  running on caseless filesystems.
1996-07-07 01:59:51 +00:00
Miles Bader
b443ba9a00 (msdos_downcase_filename):
Always lower-case drive letters, even on systems that preserve case in
  filenames.
1996-07-02 16:27:07 +00:00
Richard M. Stallman
3bb1f22f68 (check_x): Fix error message.
(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.
1996-06-10 21:03:05 +00:00
Richard M. Stallman
76ac150878 (bright_bg): New function, enables bright background colors.
(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.
1996-06-06 15:27:03 +00:00
Richard M. Stallman
323fa9398e (Fmsdos_downcase_filename): Don't change the argument, return a copy. 1996-05-12 17:45:36 +00:00
Richard M. Stallman
21319b18dc (msdos_downcase_filename): New function to convert case in filenames.
(Fmsdos_downcase_filename): New function.
(syms_of_msdos): Defsubr it.
1996-05-11 21:23:08 +00:00
Richard M. Stallman
54bd13807d (syms_of_msdos): Fix typo. 1996-05-08 17:13:31 +00:00
Richard M. Stallman
345dd8f75a (Fmsdos_long_file_names): New function.
(syms_of_msdos): Defsubr it.
1996-05-06 10:21:23 +00:00
Richard M. Stallman
d21e67b565 (dos_get_modifiers): Restore missing comment terminator.
(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'.
1996-05-01 23:25:33 +00:00
Richard M. Stallman
37513bdf93 (getdefdir): Include drive letter and colon when
constructing default directory for drive.
1996-04-27 00:52:30 +00:00
Richard M. Stallman
6c05ef1e11 (getdefdir) [DJGPP > 1]: Use 32-bit ESI to pass buffer
address to `intdos' instead of SI which can be 16-bit.
1996-04-26 11:56:25 +00:00
Richard M. Stallman
2636719334 (check_timer): Removed; use gettime instead.
(sys_select): Call __dpmi_yield while waiting for input to
improve multitasking behaviour.
Do not check timer when no timeout.
1996-04-16 20:41:24 +00:00
Richard M. Stallman
8748735b9e Include signal.h.
(__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.
1996-04-12 06:04:10 +00:00
Richard M. Stallman
1bd7b2c715 [MSDOS]: If DJGPP version 2, include fcntl.h.
(_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.
1996-04-10 04:13:40 +00:00
Richard M. Stallman
82721b77dc (check_timer): Remove code for dos-display-time.
(syms_of_msdos): Delete dos-display-time Lisp var.
1996-03-07 20:21:29 +00:00
Richard M. Stallman
48ffe371ec (dos_rawgetc): Allow simulation of `Mouse-3' by
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.
1996-01-29 22:22:08 +00:00
Karl Heuer
4a96d4d22d (dos_set_window_size): New function; switches the screen
to the size as close as possible to requested frame dimensions.
1996-01-24 22:33:08 +00:00
Karl Heuer
0ab5e72ab1 (sys_select): Use time macros to prevent time values
from overflowing.
1996-01-24 21:21:40 +00:00
Karl Heuer
40a646234f (sigblock): New (dummy) function. 1996-01-23 17:56:55 +00:00
Erik Naggum
3b7ad313e0 Update FSF's address in the preamble. 1996-01-15 09:18:04 +00:00
Richard M. Stallman
c87d0294a0 (dos_rawgetc): Make buf longer. 1996-01-12 19:44:39 +00:00
Karl Heuer
8e6208c5d2 Comment fixes. 1996-01-05 10:03:17 +00:00
Richard M. Stallman
4fcff7b6ac (XMenuActivate): Make sure the menu title is always
displayed with `msdos-menu-active-face', no matter where the mouse pointer is.
1995-12-26 00:22:04 +00:00
Richard M. Stallman
3eb1dbb6ef (have_menus_p): Defined. 1995-12-25 01:47:56 +00:00
Karl Heuer
382cafff99 (check_timer): get rid of the DOS-specific menubar clock
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'.
1995-12-19 20:57:15 +00:00
Karl Heuer
67d98d33af (run_msdos_command): Support redirection of stderr. 1995-12-13 02:26:07 +00:00
Karl Heuer
c9adab2527 (IT_set_terminal_modes): Save screen color attribute
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.
1995-12-13 02:22:47 +00:00
Karl Heuer
976bef0e02 (XMenuActivate): Display the menu pane title.
(XMenuLocate): Do not ignore pane title length when deciding on
menu location.
1995-12-13 02:13:59 +00:00
Richard M. Stallman
bba35edee6 (sys_select): Check timer once even if input is pending. 1995-11-27 20:05:44 +00:00