Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: How to read password (no echo) from builtin?
- X-seq: zsh-workers 41193
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Sebastian Gniazdowski <psprint@xxxxxxxxxxx>, zsh-workers@xxxxxxx
- Subject: Re: How to read password (no echo) from builtin?
- Date: Thu, 1 Jun 2017 13:31:32 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version; bh=foh6xG9OZEFpWdnkCuMuLeJh0uL8S9/nFf0xmLJgy+s=; b=Uj5JV1UQFr/bFCw6NCCjn2RCyzsx3GGYSe/wIIjbDWBU6LHuMjQbtaXqfMP64hV7qr oHhk2H81jJhhFlxJzeF/3AclHgEsijTZ0s9YsOF6muZcLDyoXrVQIjWZ9GBRh3XG7vp4 hHQvb6/X7T18qnd1Hc0M4l2LZWIzg3qPKqpnZUHvbHH/Kcf14gxKREeUGQI+t14LyOzV FwIRL0N2Bs+0jFK5zfETE/uaoAGn4MjL5Cwmf54bsxAPFB8q86eOuMW2lit0f8Xcdd4Q 6UsmeS2ql1bvk4537EGTuUAiVqf0EfOC7+4sv8PLkPxaHsZ3jw1rEIREQGBhCwuFymkT /W2g==
- In-reply-to: <etPan.592ef1c0.7fdcc233.1a9@MacMini>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <etPan.592ef1c0.7fdcc233.1a9@MacMini>
On May 31, 6:39pm, Sebastian Gniazdowski wrote:
}
} I need to read a password (no echo to terminal) from builtin, provided
} by module. Should I invoke bin_read? I would have to find a way to
} provide Options typedef argument. How to do it? Could also invoke
} vared, but I don't see builtin for it.
bin_vared is in Src/Zle/zle_main.c. However I don't expect that when
reading a password you want to attempt to interpret ZLE widget actions.
Construct a "builtin read -rs" command and call execstring(), perhaps?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author