2010-11-08 スクリーンの大きさとか symfony symfonyのコマンド打って、「なんで、ログの幅をちゃんと計算してるんだろう?」って思ったら lib/command/sfFormatter.class.php <?php $maxLineSize = ctype_digit(trim(shell_exec('tput cols 2>&1'))) ? (integer) shell_exec('tput cols') : 78; ってところで、ちゃんと幅を取っていた。細かいなー。