aboutsummaryrefslogtreecommitdiffstats
path: root/src/dosfns.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Changes for separate unspecified foreground and background colorsEli Zaretskii1999-12-151-3/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | on character terminals: * dispextern.h (FACE_TTY_DEFAULT_FG_COLOR) (FACE_TTY_DEFAULT_BG_COLOR): New macros. * xfaces.c (Qunspecified_fg, Qunspecified_bg): New variables. (syms_of_xfaces): Initialize and staticpro them. (tty_defined_color): If the color name is unspecified-fg or unspecified-bg, return FACE_TTY_DEFAULT_FG_COLOR and FACE_TTY_DEFAULT_BG_COLOR, respectively, as the pixel value. (tty_color_name): If the color pixel value is either FACE_TTY_DEFAULT_FG_COLOR or FACE_TTY_DEFAULT_BG_COLOR, return Qunspecified_fg or Qunspecified_bg, respectively. (Finternal_set_lisp_face_attribute): Allow values Qunspecified_fg and Qunspecified_bg for foreground and background colors. (realize_default_face): If the foreground and background colors are not specified, default to Qunspecified_fg and Qunspecified_bg. (realize_tty_face): By default, set the face colors to FACE_TTY_DEFAULT_FG_COLOR and FACE_TTY_DEFAULT_BG_COLOR. [MSDOS]: Handle FACE_TTY_DEFAULT_FG_COLOR and FACE_TTY_DEFAULT_BG_COLOR when face colors are not defined. Reverse the colors if the default colors were reversed. * dispnew.c (init_display): Initialize the frame pixels of the initial frame to FACE_TTY_DEFAULT_FG_COLOR and FACE_TTY_DEFAULT_BG_COLOR. * term.c (turn_on_face): If the default fore- and background colors are reversed, enter inverse video mode. Don't send color escape sequences for unspecified foreground and background colors. (turn_off_face): Handle unspecified-fg and unspecified-bg colors. * dosfns.c (unspecified_colors): New variable. (msdos_stdcolor_idx): Handle unspecified-fg and unspecified-bg color names, return FACE_TTY_DEFAULT_FG_COLOR and FACE_TTY_DEFAULT_BG_COLOR, respectively. (msdos_stdcolor_name): Handle FACE_TTY_DEFAULT_FG_COLOR and FACE_TTY_DEFAULT_BG_COLOR, return Qunspecified_fg and Qunspecified_bg, respectively. * msdos.c (IT_set_face): Support FACE_TTY_DEFAULT_FG_COLOR and FACE_TTY_DEFAULT_BG_COLOR as pixel values. * faces.el (face-read-integer, read-face-attribute) (color-defined-p, color-values): Allow color values unspecified-fg and unspecified-bg, handle them as unspecified.
* Changes for automatic remapping of X colors on terminal frames:Eli Zaretskii1999-12-061-12/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * xfaces.c (XColor) [!HAVE_X_WINDOWS]: Provide a typedef for non-X frames. (Vface_tty_color_alist): Remove. (tty_defined_color): New function. (defined_color): Rewrite to support any type of frame. (tty_color_name): New function. (face_color_supported_p, Fface_color_gray_p, Fface_color_supported_p): Support non-X frames. (load_color): Enclose the color name in quotes, in the log messages. Remove DOS-specific version of load_color. (realize_tty_face): Take the supported colors from tty-color-alist. Support translation of X colors to the closest tty color, for both MSDOS and tty frames. [MSDOS]: Don't invert face colors if they were taken from the frame colors. (Fface_register_tty_color, Fface_clear_tty_colors): Remove. * frame.h (struct x_output) [!MSDOS, !WINDOWSNT, !HAVE_X_WINDOWS]: Define a mostly empty surrogate. (tty_display): Declare. * frame.c (make_terminal_frame) [!macintosh]: Don't use tty_display. (Fframe_parameters): Don't invert colors of non-FRAME_WINDOW_P frames when the frame's param_alist includes 'reverse. (tty_display): Define. (make_terminal_frame) [!MSDOS]: Assign &tty_display to the output_data.x member. (Fframe_parameters): Return foreground and background color names on tty frames as well, in addition to MSDOS frames. * msdos.h (DisplayWidth, DisplayHeight): Changes for Lisp_Object selected_frame. (struct x_output): Remove unused members; document who uses each member. (FRAME_PARAM_FACES, FRAME_N_PARAM_FACES, FRAME_DEFAULT_PARAM_FACE, FRAME_MODE_LINE_PARAM_FACE, FRAME_COMPUTED_FACES, FRAME_N_COMPUTED_FACES, FRAME_SIZE_COMPUTED_FACES, FRAME_DEFAULT_FACE, FRAME_MODE_LINE_FACE, unload_color): Remove unused macro definintions. * msdos.c (IT_set_frame_parameters): Don't call recompute_basic_faces, the next redisplay will, anyway. (x_current_display): Remove unused variable. Many functions: changes for Lisp_object selected_frame. (IT_set_face): If the tty_reverse_p flag is set for the face, reverse the foreground and background colors. (Fmsdos_remember_default_colors): New function. (syms_of_msdos): Defsubr it. (IT_set_frame_parameters): Use initial_screen_colors[] when creating a new frame. If the frame parameters include 'reverse, swap the foreground and background colors. (internal_terminal_init): Initialize initial_screen_colors to -1. (syms_of_msdos): Add DEFVAR_BOOL for x-stretch-cursor, to shut up cus-start.el. * Makefile.in (lisp, shortlisp): Add lisp/term/tty-colors.elc. * xfns.c (x_defined_color): Rename from defined_color. All callers changed. (Fxw_color_defined_p): Renamed from Fx_color_defined_p; all callers changed. (Fxw_color_values): Renamed from Fx_color_values; all callers changed. (Fxw_display_color_p): Renamed from Fx_display_color_p; all callers changed. (x_window_to_frame, x_any_window_to_frame, x_non_menubar_window_to_frame, x_menubar_window_to_frame, x_top_window_to_frame): Use !FRAME_X_P instead of f->output_data.nothing. * xterm.h (x_defined_color): Rename from defined_color. * w32fns.c (x_window_to_frame): Use FRAME_W32_P instead of f->output_data.nothing. (Fxw_color_defined_p): Renamed from Fx_color_defined_p; all callers changed. (Fxw_color_values): Renamed from Fx_color_values; all callers changed. (Fxw_display_color_p): Renamed from Fx_display_color_p; all callers changed. * dispextern.h (tty_color_name): Add prototype. * xmenu.c (menubar_id_to_frame): Use FRAME_WINDOW_P instead of f->output_data.nothing. * w32menu.c (menubar_id_to_frame): Likewise. * w32term.h (w32_output): Declare. * dosfns.c (Qmsdos_color_translate): Remove. (msdos_stdcolor_name): Now returns a Lisp_Object. * dosfns.h (Qmsdos_color_translate): Remove. * s/msdos.h (INTERNAL_TERMINAL): Add entries for color support.
* (msdos_stdcolor_name): Remove const from return value.Eli Zaretskii1999-08-101-1/+1
|
* (msdos_stdcolor_name, msdos_stdcolor_idx): NewEli Zaretskii1999-07-301-0/+40
| | | | functions.
* (dos_cleanup): Flush and fsync the termscript stream.Eli Zaretskii1998-12-031-0/+7
|
* (init_dosfns): Fix bug in passing segment address of the transfer buffer.Eli Zaretskii1998-04-081-1/+1
|
* (__tb): Define.Eli Zaretskii1997-10-131-0/+149
| | | | | | | | | | | (restore_parent_vm_title): New function. (ms_windows_version): New function. (w95_set_virtual_machine_title): New function (x_set_title): New function. (dos_cleanup): New function (syms_of_dosfns): Define `dos-windows-version' Lisp variable. (init_dosfns): Compute MS-Windows version and save the original title of our DOS box.
* (init_dosfns): Avoid calling DOS memory-allocationRichard M. Stallman1997-08-111-13/+29
| | | | service, NT DPMI server will crash Emacs in DOS box, if we do.
* (Finsert_startup_screen): Call `insert_char' with a single argument.Richard M. Stallman1997-08-111-2/+2
|
* (init_dosfns): When setting `__opendir_flags' value,Richard M. Stallman1996-09-251-6/+10
| | | | override the bits recorded when dumping.
* (Fset_mouse_position): Remove the DOS-specificRichard M. Stallman1996-06-101-13/+0
| | | | | definition (it's defined on `frame.c'). (syms_of_dosfns): Remove defsubr of `Fset_mouse_position'.
* (init_dosfns) [DJGPP >= 2]: Make `opendir' preserveRichard M. Stallman1996-05-131-0/+12
| | | | filename case (under Win95) and find hidden files.
* Undo previous change.Richard M. Stallman1996-05-061-14/+0
|
* (Fmsdos_long_file_names): New function.Richard M. Stallman1996-05-051-0/+13
| | | | (syms_of_dosfns): defsubr it.
* (mode25, mode4350): Moved to `lisp/dos-fns.el'.Richard M. Stallman1996-01-251-59/+0
|
* Update FSF's address in the preamble.Erik Naggum1996-01-151-1/+2
|
* (Fint86, Fdos_memget, Fdos_memput, Fmsdos_set_keyboard): HarmonizeErik Naggum1996-01-091-43/+43
| | | | arguments with documentation.
* (syms_of_dosfns): delete the `dos-menubar-clock' andKarl Heuer1995-12-191-11/+0
| | | | | `dos-timer-hooks' variables (the usual modeline time display now works and `display-time-hook' can be used under DOS).
* (syms_of_dosfns): Use 0x75 for dos_keypad_mode.Richard M. Stallman1995-11-211-1/+1
|
* (insert-startup-screen): New function.Kim F. Storm1995-10-111-10/+187
| | | | | | | | (msdos-memget, msdos-memput): New functions. (msdos-set-keyboard, insert-startup-screen): New functions. (dos-timezone-offset, dos-display-scancodes, dos-menubar-clock, dos-hyper-key, dos-super-key, dos-keypad-mode, dos-keyboard-layout, dos-decimal-point): New variables.
* (Fmsdos_mouse_enable, Fmsdos_mouse_disable)Richard M. Stallman1995-09-021-2/+41
| | | | | | | (Fmsdos_mouse_init): New functions. (syms_of_dosfns): defsubr them. (Fmode25, Fmode4350): Call mouse_off unconditionally. (Fset_mouse_position): Return nil.
* Comment change.Richard M. Stallman1995-01-201-1/+1
|
* *** empty log message ***Morten Welinder1994-10-171-0/+40
|
* Finish downcasing mouse_init1, mouse_off,Richard M. Stallman1994-05-021-25/+28
| | | | | | | mouse_check_moved, mouse_pressed, mouse_released, mouse_on, mouse_init. (Fmode25, Fmode4350): Clean up the coding and return a well-defined value. (syms_of_dosfns): Doc fix.
* Use <...> for config.h.Richard M. Stallman1994-02-171-1/+1
|
* Initial revisionRichard M. Stallman1994-01-081-0/+215