ccmake: Check that getmaxyx result width is non-negative
Otherwise GCC 10.1 issues a -Wstringop-overflow=
diagnostic when we use the width for indexing.
Otherwise GCC 10.1 issues a -Wstringop-overflow=
diagnostic when we use the width for indexing.