fix #2187 set terminal columns to Infinity if 0
fix #2187 set terminal columns to Infinity if 0

Updated deprecated call from tty.getWindowSize()[1]

xalopp/npm,cchamberlain/npm,midniteio/npm,kimshinelove/naver-npm,segrey/npm,evocateur/npm,cchamberlain/npm-msys2,ekmartin/npm,DaveEmmerson/npm,princeofdarkness76/npm,DIREKTSPEED-LTD/npm,yodeyer/npm,ekmartin/npm,princeofdarkness76/npm,thomblake/npm,yibn2008/npm,Volune/npm,evocateur/npm,thomblake/npm,yyx990803/npm,yyx990803/npm,kriskowal/npm,segmentio/npm,yodeyer/npm,yyx990803/npm,DIREKTSPEED-LTD/npm,yibn2008/npm,cchamberlain/npm,cchamberlain/npm-msys2,kemitchell/npm,thomblake/npm,rsp/npm,haggholm/npm,DaveEmmerson/npm,evanlucas/npm,segmentio/npm,midniteio/npm,misterbyrne/npm,kemitchell/npm,TimeToogo/npm,kemitchell/npm,misterbyrne/npm,chadnickbok/npm,Volune/npm,yibn2008/npm,evanlucas/npm,evocateur/npm,kriskowal/npm,DIREKTSPEED-LTD/npm,TimeToogo/npm,cchamberlain/npm,rsp/npm,Volune/npm,midniteio/npm,TimeToogo/npm,chadnickbok/npm,chadnickbok/npm,lxe/npm,rsp/npm,yodeyer/npm,lxe/npm,haggholm/npm,DaveEmmerson/npm,misterbyrne/npm,segmentio/npm,xalopp/npm,segrey/npm,ekmartin/npm,kriskowal/npm,kimshinelove/naver-npm,evanlucas/npm,kimshinelove/naver-npm,princeofdarkness76/npm,cchamberlain/npm-msys2,segrey/npm,xalopp/npm,segment-boneyard/npm,haggholm/npm,lxe/npm,segment-boneyard/npm,segment-boneyard/npm