texinfo-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[6968] pseudotty call fpathconf


From: Gavin D. Smith
Subject: [6968] pseudotty call fpathconf
Date: Sun, 31 Jan 2016 11:41:08 +0000

Revision: 6968
          http://svn.sv.gnu.org/viewvc/?view=rev&root=texinfo&revision=6968
Author:   gavin
Date:     2016-01-31 11:41:06 +0000 (Sun, 31 Jan 2016)
Log Message:
-----------
pseudotty call fpathconf

Modified Paths:
--------------
    trunk/ChangeLog
    trunk/info/pseudotty.c

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog     2016-01-30 19:41:45 UTC (rev 6967)
+++ trunk/ChangeLog     2016-01-31 11:41:06 UTC (rev 6968)
@@ -1,3 +1,8 @@
+2016-01-31  Gavin Smith  <address@hidden>
+
+       * info/pseudotty.c: Call fpathconf to get value to disable a 
+       special character in the termios structure.
+
 2016-01-30  Gavin Smith  <address@hidden>
 
        * info/t/replace-viewed.sh: Skip test if no process could be 

Modified: trunk/info/pseudotty.c
===================================================================
--- trunk/info/pseudotty.c      2016-01-30 19:41:45 UTC (rev 6967)
+++ trunk/info/pseudotty.c      2016-01-31 11:41:06 UTC (rev 6968)
@@ -90,14 +90,16 @@
 #if defined (HAVE_TERMIOS_H)
   {
   struct termios t;
+  long int disable;
+  disable = fpathconf (slave, _PC_VDISABLE);
   if (tcgetattr (slave, &t) == -1)
     error (0, 0, "error calling tcgetattr");
   else
     {
-      t.c_cc[VSTART] = -1; /* C-q */
-      t.c_cc[VSTOP] = -1;  /* C-s */
-      t.c_cc[VKILL] = -1;  /* C-u */
-      t.c_cc[VINTR] = -1;  /* C-c */
+      t.c_cc[VSTART] = disable; /* C-q */
+      t.c_cc[VSTOP] = disable;  /* C-s */
+      t.c_cc[VKILL] = disable;  /* C-u */
+      t.c_cc[VINTR] = disable;  /* C-c */
       if (tcsetattr (slave, TCSANOW, &t) == -1)
         error (0, 0, "error calling tcsetattr");
     }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]