In this tutorial, we will be discussing how to move the cursor within the stdscr using move(). I also cover how you can condense moving and printing into one function call with mvprintw(), and I briefly talk about clear as well for clearing the screen.
Support the channel: https://www.paypal.com/donate/?business=VZF3RQ3G5CM7N&no_recurring=0&item_name=Helps+support+the+channel+and+keep+me+motivated+to+continue+making+videos.¤cy_code=USD
Previous Video: https://www.youtube.com/watch?v=lV-OPQhPvSM
Next Video: https://www.youtube.com/watch?v=pjT5wq11ZSE
Snake in Ncurses Playlist: https://www.youtube.com/watch?v=MH6QlYJ2SwU&list=PL2U2TQ__OrQ_TV2-wuHqGaK8qlnxgKUvK
These tutorials assume a basic understanding of C/C++ programming, as well as the ability to use the command line/terminal.
These tutorials also assume you have installed the ncurses library for your operating system. If you haven't installed ncurses, google "install ncurses" plus the name of your operating system (i.e. Mac, Ubuntu, etc.) to find instructions on how to download (I'd supply links, but they may be outdated or dead at some point).
For instructions on how to get ncurses working on Windows (like I have done here) check out my other video: https://youtu.be/DtHO5DBZQHw
For more advanced ncurses tutorials, check out KayOS Code's channel: https://www.youtube.com/user/bryceslashgaming
TIMESTAMPS
00:00 Intro
00:54 move()
02:48 Makefile example
03:25 Running the program
04:46 mvprintw()
06:25 clear()
07:18 Outro