Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Supporting menus #1

Open
Lmpessoa opened this issue Jul 8, 2022 · 0 comments
Open

Supporting menus #1

Lmpessoa opened this issue Jul 8, 2022 · 0 comments
Assignees
Labels
what: enhance New feature or request
Milestone

Comments

@Lmpessoa
Copy link
Owner

Lmpessoa commented Jul 8, 2022

This is one issue in particular I'm looking forward to fix.

I developed the framework to behave mostly as I remember CSP applications and filled the gaps using the system my wife uses for her work, which enables the cursor to roam free through the screen. Menus usually consist of a numbered list of options followed by a field where you type the number of the option you want.

I've already given a bit of though on this issue and found the best way to support menus in Terminal applications is by creating a focusable label. Labels in the Terminal framework are a kind of component that cannot receive focus, no matter if the console cursor is right on top of it (Map.CurrentFieldIndex will always be -1). A focusable label would change this behaviour by swapping colours when the cursor enters its region and applications would be able to identify it as the currently focused element on the screen by checking the value of Map.CurrentFieldIndex.

Although it does not equate precisely equate to a menu, the concept might enable building more than it, like selection lists and even button look alikes.

@Lmpessoa Lmpessoa added the what: enhance New feature or request label Jul 8, 2022
@Lmpessoa Lmpessoa self-assigned this Jul 8, 2022
@Lmpessoa Lmpessoa added this to the v1.0.0 milestone Jul 15, 2022
@Lmpessoa Lmpessoa modified the milestones: v1.0.0, v1.1.0 Jul 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
what: enhance New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant