From owner-freebsd-mobile Sun Aug 5 16:12:45 2001 Delivered-To: freebsd-mobile@freebsd.org Received: from ptavv.es.net (ptavv.es.net [198.128.4.29]) by hub.freebsd.org (Postfix) with ESMTP id 8DC4437B401 for ; Sun, 5 Aug 2001 16:12:43 -0700 (PDT) (envelope-from oberman@ptavv.es.net) Received: from ptavv.es.net (localhost [127.0.0.1]) by ptavv.es.net (8.10.1/8.10.1) with ESMTP id f75NCfm12559; Sun, 5 Aug 2001 16:12:41 -0700 (PDT) Message-Id: <200108052312.f75NCfm12559@ptavv.es.net> To: Michelle Brownsworth Cc: freebsd-mobile@freebsd.org, "Scott D. Yelich" Subject: Re: ThinkPad X20 keyboard mapping problems In-reply-to: Your message of "Sun, 05 Aug 2001 15:50:33 PDT." Date: Sun, 05 Aug 2001 16:12:41 -0700 From: "Kevin Oberman" Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org > Date: Sun, 5 Aug 2001 15:50:33 -0700 > From: Michelle Brownsworth > > > >sigh... in the time that it too you to exaplin how to fix the > >corruption that is going to happen from this style of coding, > >you could have presented a cut'n'paste-able code: > > > >#!/usr/bin/perl > > > >$cntrlo=pack("c",15); > >print "$cntrlo"; > > > >Scott > > Kevin and Scott, > > Please excuse my obtuseness, but if the console is in the alternate > char set mode, how would one execute the Perl script that restores it > to normal? Perhaps I'm missing the point. You miss the point. It's not the key-map that's broken. It's the presentation of characters on the screen that is messed up. (Of course, it's still possible that I have simply mis-diagnosed the problem.) Create the file in a directory in the execution path, chmod the file to 755 and rehash. When the screen goes nuts, carefully type the name of the script. If you give the script an all upper-case name (e.g. FIX-FONT), the command should even echo back correctly. Of course, if you are running a program, you will need to suspend the program (CTRL-Z), run the fix, and continue the program (fg). R. Kevin Oberman, Network Engineer Energy Sciences Network (ESnet) Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab) E-mail: oberman@es.net Phone: +1 510 486-8634 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message