summaryrefslogtreecommitdiff
path: root/src/msdos.c
Commit message (Collapse)AuthorAgeFilesLines
* [__DJGPP__ >= 2] (dos_direct_output): Faster method ofKarl Heuer1996-11-191-9/+90
| | | | | | | | | | | | | | 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.
* [__DJGPP_MINOR__ == 0] (_rename): New function, aRichard M. Stallman1996-11-061-0/+116
| | | | | substitute for library low-level file-renaming function which works around Windows 95 bug.
* (run_msdos_command): When testing whether a shellRichard M. Stallman1996-09-241-2/+14
| | | | belongs to the MSDOS family, convert its name to lower-case.
* (IT_set_menu_bar_lines): Clear last_overlay_modified field.Richard M. Stallman1996-09-161-0/+1
|
* (IT_menu_display): Display control characters as ^X.Karl Heuer1996-07-071-3/+31
| | | | | (XMenuAddPane, XMenuAddSelection): Adjust menu width for control characters (displayed as ^X).
* (dostounix_filename): On caseless filesystems, downcase the filename.Miles Bader1996-07-071-4/+11
| | | | | | (unixtodos_filename): Downcase the drive letter. (init_environment): Downcase the pathnames in the environment only when running on caseless filesystems.
* (msdos_downcase_filename):Miles Bader1996-07-021-0/+11
| | | | | Always lower-case drive letters, even on systems that preserve case in filenames.
* (check_x): Fix error message.Richard M. Stallman1996-06-101-27/+72
| | | | | | | | | | | (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.
* (bright_bg): New function, enables bright background colors.Richard M. Stallman1996-06-061-8/+32
| | | | | | | | | (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.
* (Fmsdos_downcase_filename): Don't change the argument, return a copy.Richard M. Stallman1996-05-121-4/+11
|
* (msdos_downcase_filename): New function to convert case in filenames.Richard M. Stallman1996-05-111-5/+29
| | | | | (Fmsdos_downcase_filename): New function. (syms_of_msdos): Defsubr it.
* (syms_of_msdos): Fix typo.Richard M. Stallman1996-05-081-1/+1
|
* (Fmsdos_long_file_names): New function.Richard M. Stallman1996-05-061-1/+8
| | | | (syms_of_msdos): Defsubr it.
* (dos_get_modifiers): Restore missing comment terminator.Richard M. Stallman1996-05-011-17/+51
| | | | | | | (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'.
* (getdefdir): Include drive letter and colon whenRichard M. Stallman1996-04-271-0/+2
| | | | constructing default directory for drive.
* (getdefdir) [DJGPP > 1]: Use 32-bit ESI to pass bufferRichard M. Stallman1996-04-261-0/+7
| | | | address to `intdos' instead of SI which can be 16-bit.
* (check_timer): Removed; use gettime instead.Richard M. Stallman1996-04-161-29/+12
| | | | | | (sys_select): Call __dpmi_yield while waiting for input to improve multitasking behaviour. Do not check timer when no timeout.
* Include signal.h.Richard M. Stallman1996-04-121-0/+84
| | | | | | | (__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.
* [MSDOS]: If DJGPP version 2, include fcntl.h.Richard M. Stallman1996-04-101-5/+72
| | | | | | | | | | | | | (_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.
* (check_timer): Remove code for dos-display-time.Richard M. Stallman1996-03-071-40/+0
| | | | (syms_of_msdos): Delete dos-display-time Lisp var.
* (dos_rawgetc): Allow simulation of `Mouse-3' byRichard M. Stallman1996-01-291-34/+60
| | | | | | | | 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.
* (dos_set_window_size): New function; switches the screenKarl Heuer1996-01-241-0/+124
| | | | to the size as close as possible to requested frame dimensions.
* (sys_select): Use time macros to prevent time valuesKarl Heuer1996-01-241-9/+22
| | | | from overflowing.
* (sigblock): New (dummy) function.Karl Heuer1996-01-231-0/+1
|
* Update FSF's address in the preamble.Erik Naggum1996-01-151-1/+2
|
* (dos_rawgetc): Make buf longer.Richard M. Stallman1996-01-121-1/+1
|
* Comment fixes.Karl Heuer1996-01-051-2/+2
|
* (XMenuActivate): Make sure the menu title is alwaysRichard M. Stallman1995-12-261-1/+7
| | | | displayed with `msdos-menu-active-face', no matter where the mouse pointer is.
* (have_menus_p): Defined.Richard M. Stallman1995-12-251-8/+12
|
* (check_timer): get rid of the DOS-specific menubar clockKarl Heuer1995-12-191-44/+57
| | | | | | | | | 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'.
* (run_msdos_command): Support redirection of stderr.Karl Heuer1995-12-131-4/+5
|
* (IT_set_terminal_modes): Save screen color attributeKarl Heuer1995-12-131-5/+50
| | | | | | | | | | 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.
* (XMenuActivate): Display the menu pane title.Karl Heuer1995-12-131-5/+3
| | | | | (XMenuLocate): Do not ignore pane title length when deciding on menu location.
* (sys_select): Check timer once even if input is pending.Richard M. Stallman1995-11-271-2/+3
|
* (IT_set_menu_bar_lines): Clear last_modified field.Richard M. Stallman1995-11-251-0/+1
|
* Comment change.Richard M. Stallman1995-11-251-1/+1
|
* (internal_terminal_init): Initialize the_only_x_display.font.Richard M. Stallman1995-11-221-0/+1
|
* (dos_set_keyboard): If CODE is not recognized,Richard M. Stallman1995-11-221-0/+6
| | | | initialize to the US keyboard table.
* (dos_menubar_clock_displayed): New variable.Richard M. Stallman1995-11-111-0/+8
| | | | (check_timer): Erase the clock if it has been turned off.
* (the_only_x_display): Type is now struct x_output.Karl Heuer1995-11-041-7/+13
| | | | | (internal_terminal_init): frame member is now named output_data. (init_environment): Fix timezone rules.
* (IT_ring_bell): Use intdos, not write.Richard M. Stallman1995-10-261-4/+54
| | | | | | (recent_doskeys_index, total_doskeys, recent_doskeys): New variables. (Frecent_doskeys): New function. (syms_of_msdos): New function.
* Whitespace changes.Richard M. Stallman1995-10-221-24/+26
|
* [!HAVE_X_WINDOWS]:Kim F. Storm1995-10-111-1295/+1698
| | | | | | | | | | | | | | | Reworked display code to perform immediate screen output. Added menu-bar clock. Reworked keyboard code to support international keyboards. Improved keypad handling (see dos-keypad-mode). Properly distinguish between C-end and C-kp-1 etc. Corrected M-return & M-kp-enter. Added support for hyper and super keys. Reworked mouse code to avoid mouse flicker. Saves and restores DOS-screen prior to emacs startup. (sys_select): Would abort if rfds = NULL. (dos_direct_output): New function. (dos_dump_scancodes): New variable.
* (gettimeofday, init_gettimeofday, daylight, gmtoffset): Undo previous change.Paul Eggert1995-09-201-5/+36
| | | | | | | (init_environment): No need to call tzset and init_gettimeofday, since `main' now does that for us. (gettimeofday): Ignore tzp; it's obsolescent. (init_gettimeofday): Invoke tzset first.
* (gettimeofday): Don't bother setting time zone,Richard M. Stallman1995-09-101-39/+6
| | | | | | since nobody uses it, and our hacks to get it get in the way of the above fix. Use simpler method for getting time stamp. (init_gettimeofday, daylight, gmtoffset): Remove.
* (putchar): Call internal_flush instead of _flsbuf.Richard M. Stallman1995-09-031-214/+451
| | | | | | | | | | | | | | | | | | | | | (DO_TERMSCRIPT): New macro to support open-termscript. (internal_flush): Corrected handling of flush in middle of escape sequences. Handle screen width > 127. (flush_escape): New function for use by internal_flush. (sys_select): New MS-DOS specific version with us timing. (EMACSCOLORS): New environment variable. (IT_clear_end_of_line): Set default face. (run_msdos_command): Restore mouse position after command. Close "backup fd"s. Corrected switch to cooked mode while running command. (mouse_on, mouse_off): Now checks have_mouse > 0. Note: "have_mouse < 0" means that a mouse is present, but it has been disabled via msdos-mouse-disable. (IT_write_glyphs): Allow esc-character itself to be printed. (event_timestamp): New function to make reliable times stamps. (sys_chdir): Skip drive letter before calling chdir. (sleep_or_kbd_hit): Handle 60 seconds time wrap. (mouse_get_pos): Return event_timestamp.
* (init_environment): Move alloca call out of function arg.Richard M. Stallman1995-07-201-1/+2
|
* (mouse_get_pos, mouse_check_moved, XMenuActivate):Karl Heuer1995-07-181-4/+4
| | | | Access mouse_moved in selected_frame.
* (mouse_get_pos): New arg `insist'.Richard M. Stallman1995-03-261-1/+2
|
* Comment change.Richard M. Stallman1995-01-201-1/+1
|