[sudo-users] bad adjusted output on the display when using directive use_pty

george Nopicture mad-proffessor at hotmail.com
Sun Sep 18 09:48:08 MDT 2016


On 09/18/2016 06:15 PM, Todd C. Miller wrote:
> On Sun, 18 Sep 2016 13:25:52 -0000, george Nopicture wrote:
>
>> I am on a linux terminal, no X nor Wayland sessions neither a
>> graphical login. When on standard tty the $TERM is normally set to
>> linux and when on tmux $TERM is set to screen.
> I see, now you are on the console.  I'm not able to reproduce this
> with a virtual machine but it may be that the VM console behaves
> differently
> I want to make sure that I understand exactly what you are seeing.
> When you so things in the shell or run a command does the output
> look similar to:
>
> [user at host]%ls
>               file   another  file 
> 				    [user at host]%ls
What i see on the console is this:

[user at host]%ls
              file   another  file 
				file   another  file                                                                 						file   another  file 
[user at host]%

Meaning only the output of commands behave like that.
> Where the next line continues near the last column of the previous
> line?  If so, can you send me:
>
> 1) the output of "stty -a" without tmux or sudo
> 2) the output of "stty -a" inside tmux without sudo
> 3) the output of "stty -a" inside tmux in a sudo shell with use_pty set
>
> That should help me determine whether the problem is related to the
> terminal settings having to do with newline handling.  I'd expect
> to see differences in some of the post-processing options such as
> opost, onlcr, ocrnl, onocr, or onlret.
>
>  - todd

I dont know if the list is going to allow me to attach the files but i
will post the output here:

1)
speed 38400 baud; rows 65; columns 210; line = 0;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>;
eol2 = <undef>; swtch = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt
= ^R;
werase = ^W; lnext = ^V; discard = ^O; min = 1; time = 0;
-parenb -parodd -cmspar cs8 hupcl -cstopb cread -clocal -crtscts
-ignbrk brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon
-ixoff
-iuclc -ixany imaxbel iutf8
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0
vt0 ff0
isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop -echoprt
echoctl echoke -extproc

2)
speed 38400 baud; rows 64; columns 210; line = 0;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>;
eol2 = <undef>; swtch = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt
= ^R;
werase = ^W; lnext = ^V; discard = ^O; min = 1; time = 0;
-parenb -parodd -cmspar cs8 -hupcl -cstopb cread -clocal -crtscts
-ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon
-ixoff
-iuclc -ixany -imaxbel iutf8
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0
vt0 ff0
isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop -echoprt
echoctl echoke -extproc

3)speed 38400 baud; rows 64; columns 210; line = 0;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>;
eol2 = <undef>; swtch = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt
= ^R;
werase = ^W; lnext = ^V; discard = ^O; min = 1; time = 0;
-parenb -parodd -cmspar cs8 -hupcl -cstopb cread -clocal -crtscts
-ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon
-ixoff
-iuclc -ixany -imaxbel iutf8
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0
vt0 ff0
isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop -echoprt
echoctl echoke -extproc




More information about the sudo-users mailing list