screen-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Input history patch


From: Romain Francoise
Subject: Input history patch
Date: Fri, 25 Feb 2005 17:23:14 +0100
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/22.0.50 (gnu/linux)

Hi,

I sent this patch to address@hidden a few months ago but didn't
get a reply...  Maybe someone will see it here.

This patch adds a real history list to the input routine (used for the
commands `colon', `title', etc).  C-p is used to go through the history
list from the latest to the oldest command, C-n for the opposite (also
with the up/down arrow keys).  The history list is, as before, global to
all commands, I don't know if that's a problem for most users.  Also,
when the input routine was called for the first time, C-p used to clear
the input line (a side effect of restoring a previous empty line), with
my patch it doesn't do that anymore.

Duplicate commands are moved to the front of the list and not added
again.  The list is never freed since it's supposed to live as long as
the screen session anyway, if you feel it's necessary I can add a
routine to free it at exit (and possibly, add a clearinputhistory
command).

I couldn't find a CVS tree anywhere (the Savannah CVS repo is empty) so
this patch is against 4.0.2.

All feedback is welcome.

-- 
Romain Francoise <address@hidden> | No one should fear what they
it's a miracle -- http://orebokech.com/ | cannot see. --Beth Gibbons

Attachment: screen-histlist-050109.patch
Description: Input history patch


reply via email to

[Prev in Thread] Current Thread [Next in Thread]