My question touches the same project I talked about in another thread. I've made a C program that launches a text mode web browser and works as a bot on certain web pages collecting information from them. For the purpose of successful navigation, this method is better than just e.g. wget'ing the pages. So the question is how can I tell the web browser what size the terminal window is? The output is directed away from stdout using setvbuf(...);. The browser is launched using execl(...);. Right now the output is received in a very small window size which is not the size I run the program in. The browser is most likely ncurses-based.