#how to include ncurses
25 messages · Page 1 of 1 (latest)
When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.
@charred current
Your message appears to contain screenshots but no code. Please send code and error messages in text instead of screenshots if applicable!
I don't know if this is Linux, Mac or Windows, but the snippet that you include appears to indicate that ncurses.h cannot be found. Perhaps it is not installed yet? On Debian Linux systems you should be able to install with:
sudo apt-get install libncurses5-dev libncursesw5-dev
itwould be much easier to use <conio.h> for windows only
ngl you realy want to use that anywhere, it's a MS-DOS aged libary
it just works ™️
can i create an output like this using conio.h
you realy shouldn't be using conio
Any other libraries could u recommended or is there any other way?
conio.h? Come on that's not even close to a standard lib
And it's what dinosaurs used to code in their youth
you got any better ideas for direct key input?
yes, you will print const wchar_t*
oh wait, better just print const char* encoded as utf-8
yes, the windows API directly for console input
Ideas that don't include conio? Yeah
The OS API
send MSDN docs, or whatever it has
and help out OP if you have the knowledge and experience
I vouch for conio.h in windows
specifically for getting key input https://learn.microsoft.com/en-us/windows/console/readconsole can be used