On Fri, Jul 18, 2025 at 17:38:14 +1000, David Leonard wrote:

> Another non-busybox place is the termios interface, which is mostly
> implemented in the kernel. [...] There seems no existing standard
> way in this interface for setting an obfuscating character like
> asterisk.

It's usualluy a bad idea to put more things in the kernel.  termios
gives you enough rope to implement any behavior you need in userland.

TIL that NetBSD has getpassfd(3) that supports GETPASS_ECHO_STAR:

  https://man.netbsd.org/getpassfd.3
  https://github.com/NetBSD/src/blob/trunk/lib/libc/gen/getpass.c

-uwe
_______________________________________________
busybox mailing list
[email protected]
https://lists.busybox.net/mailman/listinfo/busybox

Reply via email to