From: Paul Grayson (pgrayson_at_ks.uiuc.edu)
Date: Fri Jan 18 2002 - 13:42:54 CST

(Sorry about the double email, Esther - I am attaching the actual
 command to run VMD below and copying this to vmd-l)

My solution to this problem: I modified my UNIX VMD script slightly so
that it doesn't start up an extra terminal, and I run VMD within an
emacs shell (type "emacs", then "meta-x shell", then start vmd). In
the emacs shell, "meta-p" gives you your previous commands, you can
scroll all the way back to the beginning of the session, etc. I'm
sure that there are a number of ways to do what you want.

Just replace the lines at the end of your vmd script (usually
/usr/local/bin/vmd) beginning "if($?DISPLAY)..." with this:

  exec /usr/local/lib/vmd/vmd_LINUX $*

By the way, this strategy works for almost all unix programs...
-Paul

John Stone <johns_at_ks.uiuc.edu> writes:

> Dear Esther,
> I've copied your email to the VMD-L list, as your original
> email bounced since you are not currently a member of the mailing
> list. We disallow non-members from posting in order to prevent
> the spammers from flooding the mailing list. Now on to your question:
>
> At present,there's no way to utilize the up arrow for previous
> commands in VMD. On the Windows platform, VMD has this ability
> by coincidence, as it is provided by the terminal window we are
> using to process the VMD commands. On other platforms however,
> we use 'xterm' which does not provide this feature. We have been
> discussing rewriting the way VMD uses its command console, and if
> when we do this, you can be assured that having the arrows recall
> previous commands will be one of the things we'd like to support.
> (We want it too!!)
>
> Let us know if you have any other questions.
>
> Thanks,
> John Stone
> vmd_at_ks.uiuc.edu
>
> > From: Esther Bullitt <bullitt_at_bu.edu>
> > Subject: up arrow for previous commands
> >
> > Hi.
> >
> > Is there a way to activate the up arrows, so that
> > I can repeat a previous command without re-typing it?
> > (I run mostly in unix, a little on a PC).
> >
> > Thanks,
> > Esther.
>
> --
> NIH Resource for Macromolecular Modeling and Bioinformatics
> Beckman Institute for Advanced Science and Technology
> University of Illinois, 405 N. Mathews Ave, Urbana, IL 61801
> Email: johns_at_ks.uiuc.edu Phone: 217-244-3349
> WWW: http://www.ks.uiuc.edu/~johns/ Fax: 217-244-6078