How to resize a terminal window from program in linux?
I have fedora distro. The task is to write a simple console unicode game which would display correctly only on specific terminal window size, say 50x80 symbols.
You can resize the terminal before starting the game. Running this command( requires xterm to be installed): resize -s 50 80 will resize your terminal to 50x80 symbols. Now you can write a simple shell script containing the above command and execute it or just directly execute by making system call in Cpp of any language.