3 if command -v tput 2>&1 >/dev/null; then
4 COLUMNS=$(tput cols) 2>/dev/null
5 elif command -v stty 2>&1 >/dev/null; then
6 COLUMNS=$(stty size | cut -d" " -f2) 2>/dev/null
7 elif command -v resize 2>&1 >/dev/null; then
8 COLUMNS=$(resize -u | grep COLUMNS= | sed -e 's/.*=//;s/;//') 2>/dev/null
11 java "-DCONSOLEWIDTH=${COLUMNS}" -cp "./bin/main:./j11lib/*:./resources:./help" jalview.bin.Launcher "${@}"