rzup
asked on
Terminal emulation under Solaris 10 x64 - how do you set your term when connecting via PC Cygwin?
I experience terminal emulation issues when connecting to Solaris (I use the same tools to connect to Linux and have never had a problem). For example, vi acts erratically when the term is set to cygwin or vt100. What do others do to solve this, and do you have to add terminfo for those cases (vt100, cygwin)? If so, where are you getting the terminfo?
Any pointers would be helpful. I use bash on Solaris 10 x64 (sunfire x4240) and have exported the TERM variable as both cygwin (which is default when using cygwin ssh to connect) and vt100. For example, in vi, the delete key changes case (in other words, it's mapped as ~). I'd love to have more control and understanding on these emulation issues. I connect with both XP and Vista and see the same issues (cygwin shell with cygwin ssh, and command shell with cygwin ssh).
Any pointers would be helpful. I use bash on Solaris 10 x64 (sunfire x4240) and have exported the TERM variable as both cygwin (which is default when using cygwin ssh to connect) and vt100. For example, in vi, the delete key changes case (in other words, it's mapped as ~). I'd love to have more control and understanding on these emulation issues. I connect with both XP and Vista and see the same issues (cygwin shell with cygwin ssh, and command shell with cygwin ssh).
SunOS mymachine 5.10 Generic_137112-02 i86pc i386 i86pc
~ >echo $TERM
vt100
~ >
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
can you run stty on both and compare?
after login, if you
echo $TERM
what do you see?
after login, if you
echo $TERM
what do you see?
ASKER
Localmachine:
localmachine ~
$ export TERM=vt100
localmachine ~
$ stty
speed 38400 baud; line = 0;
-imaxbel
-echoe -echok -echoctl -echoke
Then I connect to the server:
localmachine ~
$ ssh mymachine
Welcome to mymachine
~ >echo $TERM
vt100
~ >stty
speed 38400 baud; -parity
rows = 25; columns = 80; ypixels = 291; xpixels = 164;
erase = ^h; eol = -^?; eol2 = -^?; swtch = ;
brkint -inpck -istrip icrnl -ixany onlcr tab3
echo -echoe -echok iexten
~ >
localmachine ~
$ export TERM=vt100
localmachine ~
$ stty
speed 38400 baud; line = 0;
-imaxbel
-echoe -echok -echoctl -echoke
Then I connect to the server:
localmachine ~
$ ssh mymachine
Welcome to mymachine
~ >echo $TERM
vt100
~ >stty
speed 38400 baud; -parity
rows = 25; columns = 80; ypixels = 291; xpixels = 164;
erase = ^h; eol = -^?; eol2 = -^?; swtch = ;
brkint -inpck -istrip icrnl -ixany onlcr tab3
echo -echoe -echok iexten
~ >
can you run
stty -a
on both and compare characteristics ?
stty -a
on both and compare characteristics ?
ASKER
Local CP (Cygwin shell same as previous:
$ stty -a
speed 38400 baud; rows 25; columns 80; line = 0;
intr = ^C; quit = ^\; erase = ^H; kill = ^U; eof = ^D; eol = <undef>;
eol2 = <undef>; swtch = ^Z; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R;
werase = ^W; lnext = ^V; flush = ^O; min = 1; time = 0;
-parenb -parodd cs8 -hupcl -cstopb cread -clocal -crtscts
-ignbrk brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon -ixoff
-iuclc -ixany -imaxbel
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0
isig icanon iexten echo -echoe -echok -echonl -noflsh -tostop -echoctl -echoke
Server (connected with ssh from the above cygwin shell):
~ >echo vt100
vt100
~ >stty -a
speed 38400 baud;
rows = 25; columns = 80; ypixels = 241; xpixels = 164;
csdata ?
eucw 1:0:0:0, scrw 1:0:0:0
intr = ^c; quit = ^\; erase = ^h; kill = ^u;
eof = ^d; eol = -^?; eol2 = -^?; swtch = <undef>;
start = ^q; stop = ^s; susp = ^z; dsusp = ^y;
rprnt = ^r; flush = ^o; werase = ^w; lnext = ^v;
-parenb -parodd cs8 -cstopb -hupcl cread -clocal -loblk -crtscts -crtsxoff -pare
xt
-ignbrk brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl -iuclc
ixon -ixany -ixoff -imaxbel
isig icanon -xcase echo -echoe -echok -echonl -noflsh
-tostop -echoctl -echoprt -echoke -defecho -flusho -pendin iexten
opost -olcuc onlcr -ocrnl -onocr -onlret -ofill -ofdel tab3
~ >
$ stty -a
speed 38400 baud; rows 25; columns 80; line = 0;
intr = ^C; quit = ^\; erase = ^H; kill = ^U; eof = ^D; eol = <undef>;
eol2 = <undef>; swtch = ^Z; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R;
werase = ^W; lnext = ^V; flush = ^O; min = 1; time = 0;
-parenb -parodd cs8 -hupcl -cstopb cread -clocal -crtscts
-ignbrk brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon -ixoff
-iuclc -ixany -imaxbel
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0
isig icanon iexten echo -echoe -echok -echonl -noflsh -tostop -echoctl -echoke
Server (connected with ssh from the above cygwin shell):
~ >echo vt100
vt100
~ >stty -a
speed 38400 baud;
rows = 25; columns = 80; ypixels = 241; xpixels = 164;
csdata ?
eucw 1:0:0:0, scrw 1:0:0:0
intr = ^c; quit = ^\; erase = ^h; kill = ^u;
eof = ^d; eol = -^?; eol2 = -^?; swtch = <undef>;
start = ^q; stop = ^s; susp = ^z; dsusp = ^y;
rprnt = ^r; flush = ^o; werase = ^w; lnext = ^v;
-parenb -parodd cs8 -cstopb -hupcl cread -clocal -loblk -crtscts -crtsxoff -pare
xt
-ignbrk brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl -iuclc
ixon -ixany -ixoff -imaxbel
isig icanon -xcase echo -echoe -echok -echonl -noflsh
-tostop -echoctl -echoprt -echoke -defecho -flusho -pendin iexten
opost -olcuc onlcr -ocrnl -onocr -onlret -ofill -ofdel tab3
~ >
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER