[Home] [Downloads] [Search] [Help/forum]

Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  Tips and tricks
. . -> [Subject]  Masked input

Masked input

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page

Posted by Fearless   (8 posts)  [Biography] bio
Date Tue 14 May 2024 01:20 AM (UTC)
This is a LUA alias for a (mostly) masked input prompt. The text will be sent to the server and it will not show in the command history.

If Webdings size 4 isn't visibly obfuscated enough for you, then either 1: make the box smaller (box_height) so that the input field is not visible at all, or 2: get a password font, like this: https://github.com/davidagraf/passwd/blob/master/public/ttf/password.ttf (I am not affiliated. Beware of license trolls.)

  <send>pw = utils.inputbox(
  "Type password:", "", "", "Webdings", 4,
  {box_width=180, box_height=270}
pw = pw or ""
if pw ~= "" then Send(pw) end</send>
[Go to top] top

Posted by Fiendish   USA  (2,525 posts)  [Biography] bio   Global Moderator
Date Reply #1 on Tue 14 May 2024 05:27 PM (UTC)

Amended on Tue 14 May 2024 05:28 PM (UTC) by Fiendish

Very nice. You should probably use SendNoEcho instead of Send.


[Go to top] top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page

Go to topic:           Search the forum

[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at HostDash]