native_getpass function

Pointer<Utf8> native_getpass(
  1. Pointer<Utf8> __prompt
)

Prompt with PROMPT and read a string from the terminal without echoing. Uses /dev/tty if possible; otherwise stderr and stdin.

Implementation

ffi.Pointer<Utf8> native_getpass(
  ffi.Pointer<Utf8> __prompt,
) {
  _getpass ??= Libc().dylib.lookupFunction<
      ffi.Pointer<Utf8> Function(ffi.Pointer<Utf8>), _dart_getpass>('getpass');
  return _getpass!(
    __prompt,
  );
}