Sorry for the delay...
# grep ECHO /usr/include/sys/ioctl.h /usr/include/sys/termios.h
/usr/include/sys/ioctl.h: * with flags such as ECHO, NL1 etc., if
termio.h and ioctl.h
/usr/include/sys/ioctl.h:#define ECHO O_ECHO
/usr/include/sys/termios.h:#define ECHO 0x00000008 /* Enable echo
*/
/usr/include/sys/termios.h:#define ECHOE 0x00000010 /* Echo
VERASE as BS-SP-BS */
/usr/include/sys/termios.h:#define ECHOK 0x00000020 /* Echo
NL after VKILL */
/usr/include/sys/termios.h:#define ECHONL 0x00000040 /* Echo
NL even if !ECHO */
/usr/include/sys/termios.h:#define ECHOCTL 0x00000200 /* Echo
ASCII control chars as ^char */
/usr/include/sys/termios.h:#define ECHOPRT 0x00000400 /* Echo
VERASE as character erased */
/usr/include/sys/termios.h:#define ECHOKE 0x00000800 /* Echo
VKILL as BS-SP-BS for entire line */
/usr/include/sys/termios.h:#define DEFECHO 0x00001000 /*
obsolete */
Another intersting note from termios.h:
/*
* There are some inherent problems in having a single file
* ioctl.h, with both System V and BSD flags. Introducing
* BSD flags into this file creates compilation problems
* with flags such as ECHO, NL1 etc., if termio.h and ioctl.h
* are included by the same file. Since these two files can
* be only included by System V applications,
/usr/include/sys/ioctl.h
* will be System V mode and all the BSD flags will be turned off
* using #ifdef BSD_COMP. This file will also exist in
* /usr/ucbinclude/sys/ioctl.h for BSD applications but without the
* BSD flags turned off. System V appliactions can use ioctl.h
without
* any changes, System V applications requiring BSD flags should
* -D BSD_COMP when compiling (and be warned about the common
* flags between System V and BSD) and BSD applications should
* use /usr/ucbinclude/sys/ioctl.h.
*
*/
Regards,
Aris