-
-
Notifications
You must be signed in to change notification settings - Fork 600
[macOS] Implement swap processes Terminalfont
#237
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
Conversation
CarterLi
commented
Sep 17, 2022

There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we move terminal detection to src/detection (similar to GPU)? A terminal.c file for common code, and terminal_<platform>.c for each platform.
And according to Apple Developer Documentation, we need to add -fconstant-cfstrings to our cflags if using the CFSTR macro. Does cmake do this, or do we need to do this our self (or emit the usage and rely on standard c)?
|
Question: why don't we have something like |
I don't get it. We have had
I don't know. It was my first time to use those CF* stuff. The compiler didn't emit any compile / link errors though. |
|
Just tried Will investigate them later |
Sorry i meant terminal font, not just terminal. src/detection/terminalFont/terminalFont.h // defines a FFTerminalFontResult struct and a method to obtain it
src/detection/terminalFont/terminalFont.c // common code
src/detection/terminalFont/terminalFont_<platform>.c // platform specific code
src/modules/terminalFont.c // UI logic
I had a lot of init methods before (e.g.
It is probably fine then. Maybe cmake already adds it, because we link CoreFoundation. Someone will complain if the program crashes because of it.
Thanks. |
That requires a lot of code changes. Can we have this PR merged first?
I saw a lot of |
Yes, i will do the refactoring myself.
Yeah probably its time to reintroduce it... Thanks for the PR! |
