Add console width detection