changeset 9697:328b8bc31f73

(list_processes_1): Print tty name.
author Karl Heuer <kwzh@gnu.org>
date Wed, 26 Oct 1994 00:21:05 +0000
parents 20d9e38be33f
children b321ed01c3dc
files src/process.c
diffstat 1 files changed, 9 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/process.c	Tue Oct 25 20:34:42 1994 +0000
+++ b/src/process.c	Wed Oct 26 00:21:05 1994 +0000
@@ -880,8 +880,8 @@
   current_buffer->truncate_lines = Qt;
 
   write_string ("\
-Proc         Status   Buffer         Command\n\
-----         ------   ------         -------\n", -1);
+Proc         Status   Buffer         Tty         Command\n\
+----         ------   ------         ---         -------\n", -1);
 
   for (tail = Vprocess_alist; !NILP (tail); tail = Fcdr (tail))
     {
@@ -949,6 +949,13 @@
 
       Findent_to (make_number (37), minspace);
 
+      if (STRINGP (p->tty_name))
+	Finsert (1, &p->tty_name);
+      else
+	insert_string ("(none)");
+
+      Findent_to (make_number (49), minspace);
+
       if (NETCONN_P (proc))
         {
 	  sprintf (tembuf, "(network stream connection to %s)\n",