screen-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: screen does not maintain terminal dimensions upon reconnect


From: Misha Koshelev
Subject: Re: screen does not maintain terminal dimensions upon reconnect
Date: Mon, 12 Apr 2010 14:09:53 -0500
User-agent: Thunderbird 2.0.0.24 (X11/20100317)

I've tracked down the problem further - no nesting required - and would 
appreciate any help.

I log into a Beowulf cluster master node. My initial environment:
MANPATH=/home/misha/local/share/man:/home/misha/testing/share/man::/opt/xcat/share/man:
HOSTNAME=mackey.cluster
MATLABPATH=/home/misha/local
TERM=xterm
SHELL=/bin/bash
HISTSIZE=1000
SSH_CLIENT=128.249.229.196 43148 22
OLDPWD=/mnt/nfs/proj/trust_agnostic
SSH_TTY=/dev/pts/26
PERL_BADLANG=0
USER=misha
LS_COLORS=no=00:fi=00:di=01;34:ln=00;36:pi=40;33:so=00;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=00;32:*.cmd=00;32:*.exe=00;32:*.com=00;32:*.btm=00;32:*.bat=00;32:*.sh=00;32:*.csh=00;32:*.tar=00;31:*.tgz=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.bz=00;31:*.tz=00;31:*.rpm=00;31:*.cpio=00;31:*.jpg=00;35:*.gif=00;35:*.bmp=00;35:*.xbm=00;35:*.xpm=00;35:*.png=00;35:*.tif=00;35:
XCATROOT=/opt/xcat
MAIL=/var/spool/mail/misha
PATH=/home/misha/local/bin:/home/misha/testing/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/opt/xcat/bin:/opt/xcat/sbin:/home/misha/bin
INPUTRC=/etc/inputrc
PWD=/home/misha
LANG=en_US
SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass
SHLVL=1
HOME=/home/misha
LOGNAME=misha
VISUAL=zile
CVS_RSH=ssh
SSH_CONNECTION=128.249.229.196 43148 10.28.0.100 22
LESSOPEN=|/usr/bin/lesspipe.sh %s
G_BROKEN_FILENAMES=1
_=/bin/env

I launch an interactive job on a node with the following command:
screen -A -e^dD -h 100000 -S $1 $PROG

I work and everything is great.

Now _even without nesting_, when I reconnect:
screen -drA $PID
where $PID is the appropriate session ID, I get a virtual window _bigger_ than 
my gnome-terminal.

Ctrl-D F (instead of Ctrl-A in my case as I changed it using the -e option) 
doesn't help.

Neither does reset.

Here are the environment variables inside the screen, if that helps.
FSL_BIN=/opt/fsl/bin
MANPATH=/home/misha/local/share/man:/home/misha/testing/share/man:/home/misha/local/share/man:/home/misha/testing/share/man:
HOSTNAME=n035
FS_OVERRIDE=0
PBS_VERSION=TORQUE-2.3.7
MATLABPATH=/home/misha/local
SHELL=/bin/bash
TERM=screen
HISTSIZE=1000
PBS_JOBNAME=misha
FSLMULTIFILEQUIT=TRUE
PERL5LIB=/opt/freesurfer/mni/lib/perl5/5.8.5
PBS_ENVIRONMENT=PBS_INTERACTIVE
OLDPWD=/home/misha
OS=Linux
PBS_O_WORKDIR=/home/misha
LOCAL_DIR=/opt/freesurfer/local
PBS_TASKNUM=1
USER=misha
LS_COLORS=no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=01;32:*.cmd=01;32:*.exe=01;32:*.com=01;32:*.btm=01;32:*.bat=01;32:*.sh=01;32:*.csh=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01
                                                                                
                                                                                
                       
1;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tz=01;31:*.rpm=01;31:*.cpio=01;31:*.jpg=01;35:*.gif=01;35:*.bmp=01;35:*.xbm=01;35:*.xpm=01;35:*.png=01;35:*.tif=01;35:
FSFAST_HOME=/opt/freesurfer/fsfast
PBS_O_HOME=/home/misha
MNI_PERL5LIB=/opt/freesurfer/mni/lib/perl5/5.8.5
FMRI_ANALYSIS_DIR=/opt/freesurfer/fsfast
TERMCAP=SC|screen|VT 100/ANSI X3.64 virtual terminal:\
        :DO=\E[%dB:LE=\E[%dD:RI=\E[%dC:UP=\E[%dA:bs:bt=\E[Z:\
        :cd=\E[J:ce=\E[K:cl=\E[H\E[J:cm=\E[%i%d;%dH:ct=\E[3g:\
        :do=^J:nd=\E[C:pt:rc=\E8:rs=\Ec:sc=\E7:st=\EH:up=\EM:\
        :le=^H:bl=^G:cr=^M:it#8:ho=\E[H:nw=\EE:ta=^I:is=\E)0:\
        :li#60:co#236:am:xn:xv:LP:sr=\EM:al=\E[L:AL=\E[%dL:\
        :cs=\E[%i%d;%dr:dl=\E[M:DL=\E[%dM:dc=\E[P:DC=\E[%dP:\
        :im=\E[4h:ei=\E[4l:mi:IC=\E[%d@:ks=\E[?1h\E=:\
        :ke=\E[?1l\E>:vi=\E[?25l:ve=\E[34h\E[?25h:vs=\E[34l:\
        :ti=\E[?1049h:te=\E[?1049l:us=\E[4m:ue=\E[24m:so=\E[3m:\
        :se=\E[23m:mb=\E[5m:md=\E[1m:mr=\E[7m:me=\E[m:ms:\
        :Co#8:pa#64:AF=\E[3%dm:AB=\E[4%dm:op=\E[39;49m:AX:\
        :vb=\Eg:G0:as=\E(0:ae=\E(B:\
        
:ac=\140\140aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~..--++,,hhII00:\
        :k0=\E[10~:k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:k5=\E[15~:\
        :k6=\E[17~:k7=\E[18~:k8=\E[19~:k9=\E[20~:k;=\E[21~:\
        :F1=\E[23~:F2=\E[24~:kb=^H:kB=\E[Z:kh=\E[1~:@1=\E[1~:\
        :kH=\E[4~:@7=\E[4~:kN=\E[6~:kP=\E[5~:kI=\E[2~:kD=\E[3~:\
        :ku=\EOA:kd=\EOB:kr=\EOC:kl=\EOD:km:
FSF_OUTPUT_FORMAT=nii
PBS_MOMPORT=15003
MINC_BIN_DIR=/opt/freesurfer/mni/bin
SUBJECTS_DIR=/opt/freesurfer/subjects
PBS_O_QUEUE=qroute
MAIL=/var/spool/mail/misha
PBS_O_LOGNAME=misha
PATH=/home/misha/local/bin:/home/misha/testing/bin:/opt/freesurfer/bin:/opt/freesurfer/fsfast/bin:/opt/fsl/bin:/opt/freesurfer/mni/bin:/home/misha/local/bin:/home/misha/testing/bin:/usr/kerberos/bin:/opt/freesurfer/bin:/opt/freesurfer/f
                                                                                
                                                                                
                       
fsfast/bin:/opt/freesurfer/mni/bin:/bin:/usr/bin:/usr/local/bin:/opt/torque/bin:/opt/afni/current:/opt/fsl/bin::/opt/mricron:/usr/NX/bin:/opt/afni/current:/opt/fsl/bin::/opt/mricron:/usr/NX/bin
PBS_O_LANG=en_US
STY=23943.pts-0.n035
NXDIR=/usr/NX
PBS_JOBCOOKIE=88393834DAFC2DA476A00D4A8158EEDB
FSLMACHTYPE=linux_64-gcc4.1
INPUTRC=/etc/inputrc
PWD=/home/misha/gibbsp/2
FUNCTIONALS_DIR=/opt/freesurfer/sessions
PBS_NODENUM=0
LANG=en_US.UTF-8
FSLTCLSH=/opt/fsl/bin/fsltclsh
FSLMACHINELIST=
MINC_LIB_DIR=/opt/freesurfer/mni/lib
PBS_O_SHELL=/bin/bash
FSLREMOTECALL=
PBS_SERVER=mackey
FSLCONFDIR=/opt/fsl/config
FSLWISH=/opt/fsl/bin/fslwish
PBS_JOBID=255407.mackey
SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass
SHLVL=3
HOME=/home/misha
MNI_DIR=/opt/freesurfer/mni
FREESURFER_HOME=/opt/freesurfer
PBS_O_HOST=mackey
PBS_VNODENUM=0
LOGNAME=misha
VISUAL=zile
FSLDIR=/opt/fsl
WINDOW=1
PBS_QUEUE=qmax_10_exec
FIX_VERTEX_AREA=
LESSOPEN=|/usr/bin/lesspipe.sh %s
PBS_O_MAIL=/var/spool/mail/misha
FSLLOCKDIR=
FSLOUTPUTTYPE=NIFTI_GZ
MNI_DATAPATH=/opt/freesurfer/mni/data
G_BROKEN_FILENAMES=1
PBS_NODEFILE=/var/spool/torque/aux//255407.mackey
FSL_DIR=/opt/fsl
PBS_O_PATH=/home/misha/local/bin:/home/misha/testing/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/opt/xcat/bin:/opt/xcat/sbin:/home/misha/bin
_=/bin/env

Note - I _cannot_ terminate the node without terminating the whole job, and I 
_cannot_ reconnect :(

In any case, quite frustrating, and any help appreciated.

Thank you
Misha

Aaron Davies wrote:
> i've certainly had screen get into odd states when running complicated
> nested setups involving making connections to different layers from
> different sized terminal windows, sometimes simultaneously (through -x
> sharing). what generally happens is that some window will get stuck at a
> dimension lower than the minimum currently connected, and no amount of
> "fit" commands will fix it. the only general solution is to terminate
> the session and start over.
> 
> occasionally i get even worse, where the shell and screen get totally
> confused about where the cursor is, and will begin writing in the middle
> of the window, or overwrite the hardstatus line, or something. that can
> usually be fixed by just closing that window though.
> 
> On Apr 10, 2010, at 1:05 PM, Pandurangan R S wrote:
>> I have no experience with nested screens, but I hope you tried to fit
>> the outer one first, then the inner one (may be the order matters?)
>>
>> If you are running a shell you can try "reset".
>>
>> On Sat, Apr 10, 2010 at 10:25 PM, Misha Koshelev <address@hidden>
>> wrote:
>>> Thanks. This almost works but not quite.
>>>
>>> Maybe this is because I'm actually running a screen inside of a
>>> screen (long story)?
>>>
>>> I tried to "fit" both btw.
>>>
>>> Misha
>>>
>>> Pandurangan R S wrote:
>>>> Did u try "fit" command (shortcut <cmdkey> + F)?
>>>>
>>>
>>>
>>
>>
>> _______________________________________________
>> screen-users mailing list
>> address@hidden
>> http://lists.gnu.org/mailman/listinfo/screen-users
> 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]