Skip to content

Limit input to 16 characters#61

Merged
cesarBLG merged 1 commit into
cesarBLG:masterfrom
ShiralynDev:input-limit
Jun 19, 2026
Merged

Limit input to 16 characters#61
cesarBLG merged 1 commit into
cesarBLG:masterfrom
ShiralynDev:input-limit

Conversation

@ShiralynDev

Copy link
Copy Markdown
Contributor

Fixes #54

Limit input to 16 characters which seems to be the limit IRL.
I don't know if my implementation is the cleanest but this limit seems to make all the characters stay in their boxes in all menus I tested. It is a magic number without comment, it could be set as a macro or as a variable.

image

@cesarBLG

Copy link
Copy Markdown
Owner

I've never tested the input field limits in a real ETCS, I'll check it.
image
We may set specific limits for different fields taking into account the limits in the spec, but 16 characters should be fine as a default.

@cesarBLG cesarBLG merged commit 39b8f24 into cesarBLG:master Jun 19, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ETCS input outside of box

2 participants