Source-Changes-HG archive

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

[src/trunk]: src/lib/libedit Document history builtin commands.



details:   https://anonhg.NetBSD.org/src/rev/fad28eee5175
branches:  trunk
changeset: 554774:fad28eee5175
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Nov 01 23:35:33 2003 +0000

description:
Document history builtin commands.

diffstat:

 lib/libedit/editrc.5 |  22 +++++++++++++++++++---
 1 files changed, 19 insertions(+), 3 deletions(-)

diffs (36 lines):

diff -r 63d024b49e5c -r fad28eee5175 lib/libedit/editrc.5
--- a/lib/libedit/editrc.5      Sat Nov 01 23:22:54 2003 +0000
+++ b/lib/libedit/editrc.5      Sat Nov 01 23:35:33 2003 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: editrc.5,v 1.18 2003/10/19 01:26:11 wiz Exp $
+.\"    $NetBSD: editrc.5,v 1.19 2003/11/01 23:35:33 christos Exp $
 .\"
 .\" Copyright (c) 1997-2000 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -230,8 +230,24 @@
 Enable or disable the
 .Nm editline
 functionality in a program.
-.It Ic history
-List the history.
+.It Ic history Ar list | Ar size Dv n | Ar unique Dv n
+The 
+.Ar list
+command lists all entries in the history.
+The
+.Ar size
+command sets the history size to
+.Dv n
+entries.
+The
+.Ar unique
+command controls if history should keep duplicate entries.
+If
+.Dv n
+is non zero, only keep unique history entries.
+If
+.Dv n
+is zero, then keep all entries (the default).
 .It Ic telltc
 List the values of all the terminal capabilities (see
 .Xr termcap 5 ) .



Home | Main Index | Thread Index | Old Index