mirror of
https://github.com/fairyglade/ly.git
synced 2025-12-20 19:24:53 +00:00
Allow using up to a UTF-32 codepoint as a password asterisk (closes #715)
Signed-off-by: AnErrupTion <anerruption@disroot.org>
This commit is contained in:
@@ -8,7 +8,7 @@ const Bigclock = enums.Bigclock;
|
||||
|
||||
animation: Animation = .none,
|
||||
animation_timeout_sec: u12 = 0,
|
||||
asterisk: ?u8 = '*',
|
||||
asterisk: ?u32 = '*',
|
||||
auth_fails: u64 = 10,
|
||||
bg: u32 = 0x00000000,
|
||||
bigclock: Bigclock = .none,
|
||||
|
||||
@@ -202,7 +202,7 @@ pub fn drawConfinedLabel(self: TerminalBuffer, text: []const u8, x: usize, y: us
|
||||
}
|
||||
}
|
||||
|
||||
pub fn drawCharMultiple(self: TerminalBuffer, char: u8, x: usize, y: usize, length: usize) void {
|
||||
pub fn drawCharMultiple(self: TerminalBuffer, char: u32, x: usize, y: usize, length: usize) void {
|
||||
const cell = utils.initCell(char, self.fg, self.bg);
|
||||
for (0..length) |xx| utils.putCell(x + xx, y, cell);
|
||||
}
|
||||
|
||||
@@ -19,9 +19,9 @@ visible_length: usize,
|
||||
x: usize,
|
||||
y: usize,
|
||||
masked: bool,
|
||||
maybe_mask: ?u8,
|
||||
maybe_mask: ?u32,
|
||||
|
||||
pub fn init(allocator: Allocator, buffer: *TerminalBuffer, masked: bool, maybe_mask: ?u8) Text {
|
||||
pub fn init(allocator: Allocator, buffer: *TerminalBuffer, masked: bool, maybe_mask: ?u32) Text {
|
||||
const text = DynamicString.init(allocator);
|
||||
|
||||
return .{
|
||||
|
||||
Reference in New Issue
Block a user