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

Add a ncurses library #21588

Open
2 tasks
Jeremy-JYL opened this issue May 28, 2024 · 8 comments
Open
2 tasks

Add a ncurses library #21588

Jeremy-JYL opened this issue May 28, 2024 · 8 comments
Labels
Feature Request This issue is made to request a feature.

Comments

@Jeremy-JYL
Copy link

Jeremy-JYL commented May 28, 2024

Describe the feature

I want the standed ncurses function like getch, initscr and ETC

Use Case

I want to make a command line interface and the internal term.ui library didn't have many function for example getch.

Proposed Solution

Create a library that have the ncurses C binding.
Note: I actually stuck here because I don't know what will ncurses's function return.

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

Version used

V 0.4.6 80397e6, timestamp: 2024-05-27 23:06:52 +0300

Environment details (OS name and version, etc.)

MacOs 14.1.1

Note

You can use the 👍 reaction to increase the issue's priority for developers.

Please note that only the 👍 reaction to the issue itself counts as a vote.
Other reactions and those to comments will not be taken into account.

@Jeremy-JYL Jeremy-JYL added the Feature Request This issue is made to request a feature. label May 28, 2024
@JalonSolov
Copy link
Contributor

JalonSolov commented May 28, 2024

The regular term module (not term.ui) has functions as well, such as https://modules.vlang.io/term.html#utf8_getchar

@spytheman
Copy link
Member

ncurses does not have windows implementation afaik

@Delta456
Copy link
Member

I believe anyone from the community can make the bindings.

@Jeremy-JYL
Copy link
Author

ncurses does not have windows implementation afaik

But the python3 have it working, according to the python docs Windows use something called UniCurses

@JalonSolov
Copy link
Contributor

According to the UniCurses page, it is a Python wrapper around PDCurses lib... neither of which is native to Windows (as in, it doesn't come with the OS).

@Jeremy-JYL
Copy link
Author

According to the UniCurses page, it is a Python wrapper around PDCurses lib... neither of which is native to Windows (as in, it doesn't come with the OS).

But maybe someone can make a module and when installing the module, it auto detect the os and install the correct deps.

@JalonSolov
Copy link
Contributor

Perhaps someone could, if they wanted to do so.

@LifeCANvs
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Request This issue is made to request a feature.
Projects
None yet
Development

No branches or pull requests

5 participants