From owner-freebsd-questions@FreeBSD.ORG Tue Feb 20 19:43:31 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 87A0016A4D6 for ; Tue, 20 Feb 2007 19:43:31 +0000 (UTC) (envelope-from dickey@saltmine.radix.net) Received: from saltmine.radix.net (saltmine.radix.net [207.192.128.40]) by mx1.freebsd.org (Postfix) with ESMTP id 4FB4B13C442 for ; Tue, 20 Feb 2007 19:43:31 +0000 (UTC) (envelope-from dickey@saltmine.radix.net) Received: from saltmine.radix.net (localhost [127.0.0.1]) by saltmine.radix.net (8.12.2/8.12.2) with ESMTP id l1KJhUWJ012856 for ; Tue, 20 Feb 2007 14:43:30 -0500 (EST) Received: (from dickey@localhost) by saltmine.radix.net (8.12.2/8.12.2/Submit) id l1KJhUfL012854 for freebsd-questions@freebsd.org; Tue, 20 Feb 2007 14:43:30 -0500 (EST) Date: Tue, 20 Feb 2007 14:43:30 -0500 From: Thomas Dickey To: freebsd-questions@freebsd.org Message-ID: <20070220194330.GA6911@saltmine.radix.net> References: <20070220155157.GA14595@mech-aslap33.men.bris.ac.uk> <20070220164517.GA27420@saltmine.radix.net> <20070220190537.GA15632@mech-aslap33.men.bris.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070220190537.GA15632@mech-aslap33.men.bris.ac.uk> User-Agent: Mutt/1.3.27i Subject: Re: ssh to VMS - terminal problems X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Feb 2007 19:43:31 -0000 On Tue, Feb 20, 2007 at 07:05:37PM +0000, 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 +0000, 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