write term sizes to file