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

Terminal UI #13

Open
daxime opened this issue Feb 10, 2025 · 4 comments
Open

Terminal UI #13

daxime opened this issue Feb 10, 2025 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@daxime
Copy link

daxime commented Feb 10, 2025

Hello,
How are you?

I have a “small” suggestion for improvement. A “TUI” mode for Isscrolls that would bring a textual interface. This “mode” would not modify the current Isscrolls functionality.

The “TAB” key would switch between actual interface and the TUI.

In this mode you have minimalistic TUI and a field for command. This field is locked to allow the use of shortcut, and you need to press "/" to type a command

In the right menu, you have the category. Pressing the number assigned to a category will list all command in it. Each command have also a letter assigned to it, and pressing it will run the command.

If an option require to enter data, like in the character creation, you can press "/" to unlock the command field and enter the data, or switch to normal mode for easier use.

Here are a few screenshots to illustrate the TUI.

Image

Image

Image

Image

Image

@thexhr thexhr self-assigned this Feb 10, 2025
@thexhr
Copy link
Owner

thexhr commented Feb 10, 2025

Hi @daxime ,

good, thanks. I hope the same.

I like the idea of a TUI as long as the non-TUI mode remains untouched (as you said). There is at least one visually impaired isscrolls user out there using a braille display.

Are the screenshots mockups or actual code you've been written? I have no experience with TUIs/ncurses so I would rely on pull requests here.

Cheers

@daxime
Copy link
Author

daxime commented Feb 11, 2025

It is a mockups in my text editor.
Unfortunately, I have no programming experience other than basic Python.

@thexhr thexhr added the enhancement New feature or request label Feb 11, 2025
@thexhr
Copy link
Owner

thexhr commented Feb 11, 2025

OK, I leave the issue here open and tagged it with enhancement. Maybe someone with more TUI skills can pick it up

@martinellison
Copy link

martinellison commented Feb 17, 2025

I would suggest that the first step would be to separate out the user interface code and the "model" code (everything else). The model code could then form the basis of a "libsworn" library (or whatever you want to call it). This library would provide an API for any user interfaces, and the current user interface could then call the library for anything.

Then someone could write a TUI (or a GUI) using the library (without further affecting the existing code).

I am NOT volunteering for this, however.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants