agetty re-initializes the terminal at login

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

 



Agetty resets the terminal prior to the username login prompt in the
termio_init(tp, speed, op) function.  I am wondering if it makes sense
to add command line options to setup the initial terminal (opost, onlcr,
onlret, etc.).  If the terminal sits at the login prompt and messages
are displayed to the console those messages will eventually shift to the
right edge of the screen and become incoherent.  Below is a diff showing
the simple change (not saying this is correct because it probably should
allow user input). Is there a reason why agetty does not allow onlcr
during the login prompt?  

@@ -749,7 +755,9 @@
        tp->c_cflag |= CLOCAL;
     }

-    tp->c_iflag = tp->c_lflag = tp->c_oflag = tp->c_line = 0;
+    tp->c_iflag = tp->c_lflag = tp->c_line = tp->c_oflag = 0;
+    tp->c_oflag |= (OPOST | ONLCR);
+   
     tp->c_cc[VMIN] = 1;
     tp->c_cc[VTIME] = 0;

Thanks for any feedback,

Jacoby Hickerson

--
To unsubscribe from this list: send the line "unsubscribe util-linux-ng" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux