From owner-freebsd-questions Tue Oct 19 9:23: 2 1999 Delivered-To: freebsd-questions@freebsd.org Received: from timingpdc.timing.com (timingpdc.timing.com [206.168.13.194]) by hub.freebsd.org (Postfix) with ESMTP id 156D617647 for ; Tue, 19 Oct 1999 09:23:00 -0700 (PDT) (envelope-from jhein@timing.com) Received: from taz.timing.com ([206.168.13.210]) by timingpdc.timing.com (Post.Office MTA v3.1.2 release (PO205-101c) ID# 103-49575U100L2S100) with ESMTP id AAA324; Tue, 19 Oct 1999 10:23:46 -0600 Received: (from jhein@localhost) by taz.timing.com (8.8.7/8.8.7) id KAA25261; Tue, 19 Oct 1999 10:22:56 -0600 X-Authentication-Warning: taz.timing.com: jhein set sender to jhein@taz.timing.com using -f MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <14348.39648.647194.636566@taz.timing.com> Date: Tue, 19 Oct 1999 10:22:56 -0600 (MDT) From: "John E. Hein" To: "Leland V. Lammert" Cc: questions@freebsd.org Subject: Re: Shell Keyboard Mapping for PC Keyboard? In-Reply-To: <4.2.0.58.19991018183211.00a575d0@mail.inlink.com> References: <4.2.0.58.19991018164324.0097bca0@mail.inlink.com> <4.2.0.58.19991018183211.00a575d0@mail.inlink.com> X-Mailer: VM 6.75 under Emacs 20.3.1 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Leland V. Lammert wrote at 18:34 +0100 on Oct 18: > At 12:12 AM 10/19/99 , you wrote: > >Leland V. Lammert wrote at 22:45 -0500 on Oct 18: > > > We are looking at standardizing on FreeBSD for our ISP servers, .. but in > > > testing ran across some weird problems. > > > > > > FreeBSD seems to not support any of the PC keyboard mapping that CSH does > > > on Linux - Home/End/UP-DN Arrow (history buffer), Delete (current char), > > > Backspace (char left), Insert, .. to C. > > > >Linux uses tcsh as its C shell: > > > >linux% ls -alF /bin/*csh > >lrwxrwxrwx 1 root root 4 Mar 6 1999 /bin/csh -> tcsh* > >-rwxr-xr-x 1 root root 262184 Mar 21 1999 /bin/tcsh* > > > >So you've been using tcsh instead of the standard ol' C shell all these > > years. You just didn't know it. > > Hi John! > > Thanks for the response, .. but even when I *invoke* csh on Linux I still > get the up/dn arrows, Of course, that's because when you "invoke" csh, you're invoking tcsh because of the sym link. It's the same thing, and tcsh doesn't care if you invoke it as tcsh or as csh. There is no separate csh under linux (at least not RH). FreeBSD, however, has a more standard csh (as well as the option of tcsh from the ports). Same deal, incidentally, with sh/bash - RH Linux uses a sym link from sh -> bash; it has no basic Bourne shell. bash, however, DOES care if you invoke it as sh or bash. It does some different things based on whether arg 0 is sh or bash (see man page). > and even tcsh doesn't give extended functions like > home/end - any ideas there? I don't think tcsh attaches any functionality to home/end out of the box (in linux or otherwise - perhaps your linux distribution does something to tailor the tcsh key mappings that mine doesn't), but you can map those keys to whatever functions you want (man tcsh for more - see 'bindkey') yourself. p.s. Please CC the list rather than only emailing me directly. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message