Hi,

On Mon, Jul 7, 2014 at 6:01 AM, Michal Mazurek <[email protected]> wrote:
> Every time I log in using:
>   srun -p xxx -w yyy --pty bash -i
> I get a ridiculously small terminal:

I can confirm that behavior. It seems to happen as soon as the initial
terminal is larger than 256 columns.

If cols <= 256, the terminal size is kept:

$ tput cols
179
$ srun --pty bash
node:~$ env | grep PTY_WIN
SLURM_PTY_WIN_ROW=51
SLURM_PTY_WIN_COL=179
node:~$ tput cols
179

If cols > 256, it's overflowed somehow:

$ tput cols
264
$ srun --pty bash
node:~$ env | grep PTY_WIN
SLURM_PTY_WIN_ROW=51
SLURM_PTY_WIN_COL=8
node:~$ tput cols
8

The resulting column size seems to be the original column size modulo 256.

Cheers,
-- 
Kilian

Reply via email to