aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/print.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/print.c b/src/print.c
index cd3d6438bff..a14c041d6a2 100644
--- a/src/print.c
+++ b/src/print.c
@@ -34,6 +34,7 @@ Boston, MA 02110-1301, USA. */
34#include "termchar.h" 34#include "termchar.h"
35#include "intervals.h" 35#include "intervals.h"
36#include "blockinput.h" 36#include "blockinput.h"
37#include "termhooks.h" /* For struct terminal. */
37 38
38Lisp_Object Vstandard_output, Qstandard_output; 39Lisp_Object Vstandard_output, Qstandard_output;
39 40
@@ -1965,6 +1966,19 @@ print_object (obj, printcharfun, escapeflag)
1965 } 1966 }
1966 PRINTCHAR ('>'); 1967 PRINTCHAR ('>');
1967 } 1968 }
1969 else if (TERMINALP (obj))
1970 {
1971 struct terminal *t = XTERMINAL (obj);
1972 strout ("#<terminal ", -1, -1, printcharfun, 0);
1973 sprintf (buf, "%d", t->id);
1974 strout (buf, -1, -1, printcharfun, 0);
1975 if (t->name)
1976 {
1977 strout (" on ", -1, -1, printcharfun, 0);
1978 strout (t->name, -1, -1, printcharfun, 0);
1979 }
1980 PRINTCHAR ('>');
1981 }
1968 else if (HASH_TABLE_P (obj)) 1982 else if (HASH_TABLE_P (obj))
1969 { 1983 {
1970 struct Lisp_Hash_Table *h = XHASH_TABLE (obj); 1984 struct Lisp_Hash_Table *h = XHASH_TABLE (obj);