[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Detecting a full form FIELD
From: |
Thomas Dickey |
Subject: |
Re: Detecting a full form FIELD |
Date: |
Tue, 29 Jun 2021 20:27:44 -0400 |
User-agent: |
Mutt/1.10.1 (2018-07-13) |
On Tue, Jun 29, 2021 at 12:37:06PM +0100, Mike Aubury wrote:
> Is there any field option, or way to detect when a field becomes full and
> stop accepting further input.
Not directly, but I think that you could check before passing a printable
character (not an editing control) to form_driver if it would overwrite
existing text.
> At the minute, when I get to the end of the field, the behaviour i'm seeing
> has the last character in the field overwritten by the new character when I
> call form_driver, I can't seem to find a setting to say ignore further
> characters it when full, or a reliable way of detecting when a field is
> already full to stop me calling form_driver.
>
> Any help would be appreciated!
--
Thomas E. Dickey <dickey@invisible-island.net>
https://invisible-island.net
ftp://ftp.invisible-island.net
signature.asc
Description: PGP signature