Mercurial > emacs
comparison src/term.c @ 6752:f9236145bad7
(system_uses_terminfo): New variable.
(syms_of_term): New function, to initialize it.
author | Karl Heuer <kwzh@gnu.org> |
---|---|
date | Fri, 08 Apr 1994 06:59:55 +0000 |
parents | a537d9d83e52 |
children | eeefa4ac7978 |
comparison
equal
deleted
inserted
replaced
6751:e4299463079d | 6752:f9236145bad7 |
---|---|
278 | 278 |
279 /* Frame currently being redisplayed; 0 if not currently redisplaying. | 279 /* Frame currently being redisplayed; 0 if not currently redisplaying. |
280 (Direct output does not count). */ | 280 (Direct output does not count). */ |
281 | 281 |
282 FRAME_PTR updating_frame; | 282 FRAME_PTR updating_frame; |
283 | |
284 /* Provided for lisp packages. */ | |
285 static int system_uses_terminfo; | |
283 | 286 |
284 char *tparam (); | 287 char *tparam (); |
285 | 288 |
286 ring_bell () | 289 ring_bell () |
287 { | 290 { |
1649 fprintf (stderr, "emacs: "); | 1652 fprintf (stderr, "emacs: "); |
1650 fprintf (stderr, str, arg1, arg2); | 1653 fprintf (stderr, str, arg1, arg2); |
1651 fflush (stderr); | 1654 fflush (stderr); |
1652 exit (1); | 1655 exit (1); |
1653 } | 1656 } |
1657 | |
1658 syms_of_term () | |
1659 { | |
1660 DEFVAR_BOOL ("system-uses-terminfo", &system_uses_terminfo, | |
1661 "Non-nil means the system uses terminfo rather than termcap.\n\ | |
1662 This variable can be used by terminal emulator packages."); | |
1663 #ifdef TERMINFO | |
1664 system_uses_terminfo = 1; | |
1665 #else | |
1666 system_uses_terminfo = 0; | |
1667 #endif | |
1668 } |