view lib-src/leditcfns.c @ 13424:efbbbfd268dd

(nt_ring_bell): Renamed from ring_bell, now global. (initialize_win_nt_display): Use nt_ring_bell. [HAVE_NTGUI] (pixel_to_glyph_coords, glyph_to_pixel_coords): Don't define.
author Geoff Voelker <voelker@cs.washington.edu>
date Tue, 07 Nov 1995 07:35:06 +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);
    }