This is an automated email from the ASF dual-hosted git repository.

masayuki pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new 7ff6aac  serial/pty: Initialize the terminal setting as a console
7ff6aac is described below

commit 7ff6aac43add49c877a9f755d6ea57176076e11f
Author: Xiang Xiao <[email protected]>
AuthorDate: Fri Jun 11 06:28:55 2021 -0700

    serial/pty: Initialize the terminal setting as a console
    
    Signed-off-by: Xiang Xiao <[email protected]>
    Change-Id: Ie80a22b7a074d048435524d86f0ca7fc7a20e756
---
 drivers/serial/pty.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/serial/pty.c b/drivers/serial/pty.c
index 99c7514..ca238d9 100644
--- a/drivers/serial/pty.c
+++ b/drivers/serial/pty.c
@@ -1109,6 +1109,10 @@ int pty_register(int minor)
   devpair->pp_master.pd_devpair = devpair;
   devpair->pp_master.pd_master  = true;
   devpair->pp_slave.pd_devpair  = devpair;
+#ifdef CONFIG_SERIAL_TERMIOS
+  devpair->pp_slave.pd_iflag    = ISIG;
+  devpair->pp_slave.pd_oflag    = OPOST | ONLCR;
+#endif
 
   /* Create two pipes:
    *

Reply via email to