Terminal Login
A terminal-style sign-in with boot lines, login and masked password prompts on a real form, an error line on failure, a lockout and a MOTD on success.
Preview
Typing the password
[ ok ] mounted /ledger
[ ok ] started network
[ ok ] started time sync
[ ok ] reached target login
ledger-os 2.4 ledger tty1
After a failed attempt
ledger-os 2.4 ledger tty1
ledger login: ines
password:
Login incorrect
Signed in
ledger-os 2.4 ledger tty1
ledger login: ines
password:
Last login: Mon 3 Mar 09:12 on tty1
============================================
Welcome to ledger-os 2.4
3 invoices due today · backups ran at 02:00
Type `help` to see commands.
============================================
ines@ledger:~$
Every terminal is live: try ines / ledger; three failures lock the prompt for 10 seconds.
Install
Pro source requires Pebble Pro. Try the full preview above.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| onSubmit | (username, password) => boolean | Promise<boolean> | — | Checks credentials; return true to sign in. |
| host | string | "ledger" | Host name in the prompt, banner and shell prompt. |
| bootLines | string[] | — | Lines printed before the prompt, ~90ms apart; "[ ok ]" prefixes are coloured. |
| motd | string[] | — | Message of the day shown after sign-in, between ASCII rules. |
| maxAttempts | number | 3 | Failed attempts before a lockout. |
| lockout | number | 10 | Lockout length in seconds. |
| defaultUsername | string | "" | Prefilled username (also the name used by held states). |
| defaultState | "login" | "password" | "failed" | "signedIn" | — | Start in a held state with boot finished and nothing focused (for docs and snapshots). |
| defaultPassword | string | "" | Password already typed in the "password" state, shown masked. |
Pro component
Try the full preview above. Editable source and build guides require Pebble Pro.
