From owner-freebsd-questions@FreeBSD.ORG Thu Feb 14 18:41:57 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A165416A41B for ; Thu, 14 Feb 2008 18:41:57 +0000 (UTC) (envelope-from cracauer@koef.zs64.net) Received: from koef.zs64.net (koef.zs64.net [212.12.50.230]) by mx1.freebsd.org (Postfix) with ESMTP id 4E98F13C458 for ; Thu, 14 Feb 2008 18:41:56 +0000 (UTC) (envelope-from cracauer@koef.zs64.net) Received: from koef.zs64.net (koef.zs64.net [212.12.50.230]) by koef.zs64.net (8.14.2/8.14.2) with ESMTP id m1EI6i1i096083 for ; Thu, 14 Feb 2008 19:06:44 +0100 (CET) (envelope-from cracauer@koef.zs64.net) Received: (from cracauer@localhost) by koef.zs64.net (8.14.2/8.14.2/Submit) id m1EI6iDT096082 for freebsd-questions@freebsd.org; Thu, 14 Feb 2008 13:06:44 -0500 (EST) (envelope-from cracauer) Date: Thu, 14 Feb 2008 13:06:44 -0500 From: Martin Cracauer To: freebsd-questions@freebsd.org Message-ID: <20080214180644.GA95722@cons.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.3i Subject: Curses problem with keymapping in screen and debugging curses 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: Thu, 14 Feb 2008 18:41:57 -0000 I have the following problem when using screen sessions between FreeBSD and Linux: The pageup/pagedown keys stop working when I re-attach a session that was started under FreeBSD to a console that is Linux driven and vice versa. All other keys, including alt/meta and some supposedly more complicated keys continue to work. I haven't verified this in detail but it seems that while programs like mutt seem affected often emacs seems to be happy. I know NIL about curses. How would I go about debugging this? I would need something like "xev" for curses to see what keys I get from the different consoles and then I'd need something to find out what a given session expects. Where do I start looking? Also, I see screen on FreeBSD emit line noise on a regular basis, both when attaching before the session comes up and after deattaching. Dunno whether this helps. Example: # session running, press detach key [detached] -en \033]0; grisu:ttype:~\007 Martin -- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Martin Cracauer http://www.cons.org/cracauer/ FreeBSD - where you want to go, today. http://www.freebsd.org/