Re: [dev] [dmenu] [PATCH] Added option to prompt for passwords
On Mon, Jul 25, 2016 at 11:33:18PM +0200, FRIGN wrote:
> my suggestion prints as many asterisks as there are runes. try it
> out! :D
I see; I misread "curpos" as "cursor" when I glanced over it the first
time. However, it still looks wrong to me, so I tested it to verify -- I
believe the problem is that the characters aren't guaranteed to have a
width of 8 or even be constant for every character, so if you type (or
paste) something like "Blah blah Բարի գալուստ Վիքիպեդիա Blah Blah", the
cursor position and the number of asterisks is not properly
synchronized.
Eric
Received on Mon Jul 25 2016 - 23:40:43 CEST
This archive was generated by hypermail 2.3.0
: Mon Jul 25 2016 - 23:48:10 CEST