I have recently been doing an assignment which had us making a text editor. What I was trying to do is to get the terminal screen size so that I could use the coordinates. Can somebody tell me how I can save the environmental variables as integer values? I googled to find that there is a function use_env for getting the screen size. Can anybody write me a small function as an example to better understand how it works? Also, does anybody know what is the Windows version of ncurses for it does not work with windows?