From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Cody Wang Newsgroups: gmane.os.tru64.managers Subject: Summary: how to press up arrow key repeat last command Date: Thu, 26 May 2005 08:31:34 -0400 Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1117110739 28538 80.91.229.2 (26 May 2005 12:32:19 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 26 May 2005 12:32:19 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Thu May 26 14:32:17 2005 Return-path: Original-Received: from sws1.ornl.gov ([160.91.1.101]) by ciao.gmane.org with smtp (Exim 4.43) id 1DbHVe-0006BT-L5 for gotm-tru64-unix-managers@gmane.org; Thu, 26 May 2005 14:30:46 +0200 Original-Received: (qmail 2474 invoked by uid 49509); 26 May 2005 12:32:25 -0000 Original-Sender: tru64-unix-managers-owner@ornl.gov Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 2458 invoked by uid 49501); 26 May 2005 12:32:24 -0000 Original-Received: from 160.91.4.119 by sws1 (envelope-from , uid 49491) with qmail-scanner-1.25 (clamdscan: 0.83/743. spamassassin: 3.0.2. Clear:RC:0(160.91.4.119):SA:0(-2.6/5.0):. Processed in 3.48358 secs); 26 May 2005 12:32:24 -0000 X-Spam-Status: No, hits=-2.6 required=5.0 Original-Received: from emroute1.cind.ornl.gov (160.91.4.119) by sws1.ornl.gov with SMTP; 26 May 2005 12:32:21 -0000 Original-Received: from emroute1.cind.ornl.gov (localhost [127.0.0.1]) by emroute1.cind.ornl.gov (PMDF V6.2-X27 #30899) with ESMTP id <0IH300KX1K5TTK@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Thu, 26 May 2005 08:32:20 -0400 (EDT) Original-Received: from VIRUSCAN-DAEMON.emroute1.cind.ornl.gov by emroute1.cind.ornl.gov (PMDF V6.2-X27 #30899) id <0IH300G02K5IF8@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Thu, 26 May 2005 08:32:16 -0400 (EDT) Original-Received: from BCC-GWIA.berkshirecc.edu (gwia.berkshirecc.edu [69.16.68.3]) by emroute1.cind.ornl.gov (PMDF V6.2-X27 #30899) with ESMTP id <0IH300DFNK5720@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Thu, 26 May 2005 08:31:56 -0400 (EDT) Original-Received: from GWIA_DOMAIN-MTA by BCC-GWIA.berkshirecc.edu with Novell_GroupWise; Thu, 26 May 2005 08:31:55 -0400 Original-To: tru64-unix-managers@ornl.gov X-Mailer: Novell GroupWise Internet Agent 6.5.2 Content-disposition: inline X-Envelope-From: X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on email.cind.ornl.gov X-Spam-Level: X-Qmail-Scanner-MOVED-X-Spam-Status: No, score=-1.0 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.0.3 Xref: news.gmane.org gmane.os.tru64.managers:8318 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:8318 >>> Cody Wang 05/26 8:12 AM >>> [repeat last command by press up arrow key in true64] If you use BourneAgain Shell (bash) or Z Shell (zsh), you'll have it out of the box ================== in ksh check shell first $ env | grep -i shell or # env | grep -i shell If you don't then use; # chsh -s `which ksh` export TERM=vt320 Check your .profile and the global /etc/profile to see if the upkeys are Disabled====================== then put this in .profile "set -o emacs" "set -o gmacs" set -o emacs # Enable emacs style editing, like bash # Cursor up for previous command set -o vi # Enable vi style command editing # ESC and then "k" for previous command Not all shells offer you the up arrow capability. Bash (the default Linux shell), tcsh, and perhaps ksh off this feature. Take a look at /etc/shells to see which shells are offered on your system. -=============== exec ksh -o emacs you would need to use the 'bash' shell for that. Default for tru64 is probably csh or sh. You can download bash from http://www.gnu.org/software/bash/bash.html or it might come on some TRU64 open source CDs. install tcsh from your open source software collection CD. Then type /bin/tcsh or /usr/local/bin/tcsh and all works. ================================== get bash: compile, install and add to /etc/shells The final conculusion is that wyse50 term emulation cannot work that it has to be vt320/420. So, that stick with wyse50 or continue search for answer. We can use alias switch term but very trouble. Best Regards, Cody Wang Database Programmer Analyst Berkshire Community College 1350 West Street Pittsfield, MA 01201 413-499-4660 x497 Best Regards, Cody Wang Database Programmer Analyst Berkshire Community College 1350 West Street Pittsfield, MA 01201 413-499-4660 x497 >>> "John Welsh" 05/25 7:35 PM >>> Hi Cody, I am interested in seeing what the responses were from your command recall question. Could you please send a summary to the list. Thank you and Best Regards, John Welsh. =========== Sydney, Australia. -----Original Message----- From: tru64-unix-managers-owner@ornl.gov [mailto:tru64-unix-managers-owner@ornl.gov]On Behalf Of Cody Wang Sent: Wednesday, 25 May 2005 10:07 To: tru64-unix-managers@ornl.gov Subject: Thank you! RE: how to press up arrow key repeat last command Thank you very much for everyone's answer. I got about 30 emals about how to press up arrow key repeat last command that apparently this is very common question. I need to keep learning. : ) Best Regards, Cody Wang Database Programmer Analyst Berkshire Community College 1350 West Street Pittsfield, MA 01201 413-499-4660 x497 Best Regards, Cody Wang Database Programmer Analyst Berkshire Community College 1350 West Street Pittsfield, MA 01201 413-499-4660 x497