On 14May2005 01:19, Yang Yang <[EMAIL PROTECTED]> wrote:
|       could you tell me how to obtain the command history local to a
| single xterm? ----- if I do "history", the results from all xterms are
| the same

Sounds like you're using bash. It shares history across all shells.
However, the command "history 1", when used by the function called from
$PROMPT_COMMAND, should contain the last command executed for _that_
shell. Which would suffice:

        atprompt()
        {
          ttylabel "$HOST $PWD <`history 1`>"
        }

Cheers,
-- 
Cameron Simpson <[EMAIL PROTECTED]> DoD#743
http://www.cskk.ezoshosting.com/cs/

When I die, I want to go sleeping like my grandfather...
Not screaming like the passengers in his car.   - [EMAIL PROTECTED]
--
Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to [EMAIL PROTECTED]
To report problems, send mail to [EMAIL PROTECTED]

Reply via email to