Mercurial > emacs
view lib-src/leditcfns.c @ 13179:b0de215331ba
[!HAVE_X_WINDOWS]:
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.
author | Kim F. Storm <storm@cua.dk> |
---|---|
date | Wed, 11 Oct 1995 15:08:15 +0000 |
parents | da530eb93c1a |
children | 695cf19ef79e |
line wrap: on
line source
#include <sgtty.h> #include <signal.h> #define STRLEN 100 static char str[STRLEN+1] = "%?emacs"; /* extra char for the null */ switch_to_proc(){ char *ptr = str; while (*ptr) ioctl(0, TIOCSTI, ptr++); ioctl(0, TIOCSTI, "\n"); kill(getpid(), SIGTSTP); } set_proc_str(ptr) char *ptr; { if (strlen(ptr) <= STRLEN) strcpy(str, ptr); else printf("string too long for set-proc-str: %s\n", ptr); }