Use TIOCGWINSZ ioctl to retrieve cell size in pixel