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 portable method to get user name #2022

Closed
dankamongmen opened this issue Aug 4, 2021 · 1 comment
Closed

add portable method to get user name #2022

dankamongmen opened this issue Aug 4, 2021 · 1 comment
Assignees
Labels
documentation Improvements or additions to documentation enhancement New feature or request mswindows microsoft windows
Milestone

Comments

@dankamongmen
Copy link
Owner

In both ncneofetch and nctetris we need the user name, which turns into a mess of #ifdefs. Just provide a portable notcurses_username() that returns a heap-allocated copy of the login name, and use it.

@dankamongmen dankamongmen added documentation Improvements or additions to documentation enhancement New feature or request mswindows microsoft windows labels Aug 4, 2021
@dankamongmen dankamongmen added this to the 3.0.0 milestone Aug 4, 2021
@dankamongmen dankamongmen self-assigned this Aug 4, 2021
@dankamongmen
Copy link
Owner Author

added for 2.3.13.

@dankamongmen dankamongmen modified the milestones: 3.0.0, 2.4.0 Aug 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request mswindows microsoft windows
Projects
None yet
Development

No branches or pull requests

1 participant