Re: ssh to VMS - terminal problems

2007-02-22 Thread perryh
  yes - VMS only knows about DEC-compatible terminals.  None of
  the *BSD console emulators do well enough to be usable on VMS.
  
  xterm supports ANSI color, VT220 emulation and UTF-8
  There's an faq at
  http://invisible-island.net/xterm/xterm.faq.html
  ftp://invisible-island.net/xterm/

Which is fine if one doesn't mind having to fire up X.  Another
possible approach would be to run ports/sysutils/screen, which
should provide a decent VT100 over just about anything with a
terminfo better than dumb or unknown :)

 So, what was pcvt driver designed for? I understood from the man
 pages that it is supposed to be compartible with DEC function keys?

Generating the escape sequences for the DEC function keys is one
thing.  Handling all the escape sequences that VMS throws at it
is another.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ssh to VMS - terminal problems

2007-02-22 Thread Thomas Dickey
On Thu, Feb 22, 2007 at 01:04:39AM -0800, [EMAIL PROTECTED] wrote:
   yes - VMS only knows about DEC-compatible terminals.  None of
   the *BSD console emulators do well enough to be usable on VMS.
   
   xterm supports ANSI color, VT220 emulation and UTF-8
   There's an faq at
 http://invisible-island.net/xterm/xterm.faq.html
 ftp://invisible-island.net/xterm/
 
 Which is fine if one doesn't mind having to fire up X.  Another
 possible approach would be to run ports/sysutils/screen, which
 should provide a decent VT100 over just about anything with a
 terminfo better than dumb or unknown :)

termcap.

screen doesn't use the fancier features from terminfo (and will do interesting
but unuseful things if it is exposed to them).

It's a decent vt100 for the same issues: applications running vi.
Read the section on bugs (from its manpage):

 o  Screen has  no  clue  about  double-high  or  double-wide
characters.  But  this  is  the only area where vttest is
allowed to fail.

 o  Screen does not make use of hardware tabs.

However, that comment about vttest overlooks some of the keyboard
issues (such as repeating keys) that screen has no control over.
There are several terminals smarter than dumb/unknown that screen
cannot elevate or transform into a vt100...

-- 
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net


pgpjxK4gxyFIF.pgp
Description: PGP signature


ssh to VMS - terminal problems

2007-02-20 Thread Anton Shterenlikht
HI

I connect to a VMS box from my FreeBSD laptop via ssh.
When I run a full screen text editor (EDIT) my terminal screen behaves
unpredictably: cursor jumps from place to place, keystrokes produce
characters in unpredictable places, screen menu flows with the text
rather than stay at the bottom. Hovewer, if I scroll the offending
bit up of down from the screen and back into the screen I can see
my changes. I assume the problem lies in some terminal incompartibility.

My box is
% uname -a
6.2-PRERELEASE FreeBSD #0: Wed Nov 22 09:36:22 GMT 2006
 root@:/usr/obj/usr/src/sys/SC  i386
%

I had exactly the same problem with 6.1.

I use sc driver. In a desperate attempt to resolve the problem I tried
pcvt driver, but that seems to be faulty and no longer supported, freezes
screen and the keyboard. However, I'm not sure if the actual driver
 has anything to do with my problem.

At the moment I use
% echo $TERM
cons25
%

but I tried several other terminals I found in /etc/termcap, including
various VT terminals. This is when I tried to use pcvt instead of sc,
because I thought that maybe a VT term requires pcvt driver. Does it
make any sense?

On the other hand I tried to change terminal settings on the VMS box,
which are many. At present these look as follows:

 $ show terminal/full
Terminal: _FTA20: Device_Type: VT100 Owner: MEXAS

   Input:9600 LFfill:  0  Width:  80  Parity: None
   Output:   9600 CRfill:  0  Page:   24

Terminal Characteristics:
   InteractiveEcho   Type_ahead No Escape
   Hostsync   TTsync Lowercase  Tab
   Wrap   Scope  No Remote  No Eightbit
   Broadcast  No ReadsyncNo FormFulldup
   No Modem   No Local_echo  No AutobaudNo Hangup
   No Brdcstmbx   No DMA No Altypeahd   Set_speed
   No CommsyncLine Editing   Overstrike editing No Fallback
   No Dialup  Secure server  No Disconnect  No Pasthru
   No Syspassword No SIXEL Graphics  No Soft Characters No Printer Port
   Numeric Keypad ANSI_CRT   No Regis   No Block_mode
   Advanced_video No Edit_mode   DEC_CRTNo DEC_CRT2
   No DEC_CRT3No DEC_CRT4No DEC_CRT5No Ansi_Color
   VMS Style InputCTRL-H Backspace
 $

I cannot remember which settings I tried and which I did not, but the
possible number of combinations is too big to try all.

If I run ssh from a terminal emulator in xorg, all seems fine.

Perhaps somebody can suggest an option to try or perhaps I'm missing
someting alltogeter?


thanks
anton
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ssh to VMS - terminal problems

2007-02-20 Thread Thomas Dickey
On Tue, Feb 20, 2007 at 03:51:57PM +, Anton Shterenlikht wrote:

 If I run ssh from a terminal emulator in xorg, all seems fine.

yes - VMS only knows about DEC-compatible terminals.  None of the *BSD
console emulators do well enough to be usable on VMS.

xterm supports ANSI color, VT220 emulation and UTF-8
There's an faq at
http://invisible-island.net/xterm/xterm.faq.html
ftp://invisible-island.net/xterm/

-- 
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ssh to VMS - terminal problems

2007-02-20 Thread Anton Shterenlikht
On Tue, Feb 20, 2007 at 11:45:17AM -0500, Thomas Dickey wrote:
 On Tue, Feb 20, 2007 at 03:51:57PM +, Anton Shterenlikht wrote:
 
  If I run ssh from a terminal emulator in xorg, all seems fine.
 
 yes - VMS only knows about DEC-compatible terminals.  None of the *BSD
 console emulators do well enough to be usable on VMS.
 
 xterm supports ANSI color, VT220 emulation and UTF-8
 There's an faq at
   http://invisible-island.net/xterm/xterm.faq.html
   ftp://invisible-island.net/xterm/

thanks a lot.

So, what was pcvt driver designed for? I understood from the man
pages that it is supposed to be compartible with DEC function keys?

anton
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ssh to VMS - terminal problems

2007-02-20 Thread Thomas Dickey
On Tue, Feb 20, 2007 at 07:05:37PM +, Anton Shterenlikht wrote:
 On Tue, Feb 20, 2007 at 11:45:17AM -0500, Thomas Dickey wrote:
  On Tue, Feb 20, 2007 at 03:51:57PM +, Anton Shterenlikht wrote:
  
   If I run ssh from a terminal emulator in xorg, all seems fine.
  
  yes - VMS only knows about DEC-compatible terminals.  None of the *BSD
  console emulators do well enough to be usable on VMS.
  
  xterm supports ANSI color, VT220 emulation and UTF-8
  There's an faq at
  http://invisible-island.net/xterm/xterm.faq.html
  ftp://invisible-island.net/xterm/
 
 thanks a lot.
 
 So, what was pcvt driver designed for? I understood from the man
 pages that it is supposed to be compartible with DEC function keys?

Most of these drivers are just good enough to run vi (so they can use
a termcap written to accommodate a DEC terminal).

VMS wants more than just function keys - the terminal has to respond
to control sequences that ask what it is, for instance.  I see from
the show-terminal that it either guessed that it was a VT100, or that
it was told that it was.

If you capture the output from the host with 'script', you can see what's
sent to the terminal. Seeing the replies is harder, but that might provide
some clues.

Running vttest would show some of the issues (for a 25-line console
screen, that would be something like vttest 25x80.80 to make it workable).

That reminds me -
Of course VMS thinks you have 24 lines (which makes all of the scrolling
not work properly).  You can modify that setting (the page in the show
term).  There are other likely problems...

-- 
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]