couldnt find getmaxyx so i made a seperate programme to do it with command line, this is included