Unix and Linux Discussions Tagged with history |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
6 |
12,860 |
UNIX for Advanced & Expert Users |
|
|
|
8 |
15,412 |
What is on Your Mind? |
|
|
|
1 |
3,777 |
UNIX for Beginners Questions & Answers |
|
|
|
9 |
115,956 |
What is on Your Mind? |
|
|
|
2 |
989 |
UNIX for Beginners Questions & Answers |
|
|
|
13 |
11,000 |
Shell Programming and Scripting |
|
|
|
3 |
3,366 |
Shell Programming and Scripting |
|
|
|
21 |
394,279 |
Fedora |
|
|
|
1 |
1,833 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
3,006 |
Solaris |
|
|
|
4 |
5,340 |
Solaris |
|
|
|
2 |
42,608 |
Shell Programming and Scripting |
|
|
|
6 |
3,155 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
16,087 |
UNIX for Dummies Questions & Answers |
|
|
|
0 |
5,052 |
UNIX for Dummies Questions & Answers |
|
|
|
9 |
5,817 |
Shell Programming and Scripting |
|
|
|
1 |
7,509 |
Shell Programming and Scripting |
|
|
|
3 |
4,590 |
IP Networking |
|
|
|
1 |
2,526 |
UNIX for Dummies Questions & Answers |
|
|
|
6 |
16,182 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
11,977 |
AIX |
|
|
|
1 |
3,363 |
UNIX for Dummies Questions & Answers |
|
|
|
9 |
21,415 |
UNIX for Advanced & Expert Users |
|
|
|
2 |
61,644 |
UNIX for Advanced & Expert Users |
|
|
|
0 |
2,257 |
Complex Event Processing RSS News |
|
|
|
3 |
73,451 |
Solaris |
|
|
|
0 |
2,018 |
Complex Event Processing RSS News |
|
|
|
3 |
7,216 |
UNIX for Dummies Questions & Answers |
|
|
|
0 |
1,003 |
Software Releases - RSS News |
|
|
|
6 |
13,998 |
Shell Programming and Scripting |
|
|
|
4 |
28,422 |
Shell Programming and Scripting |
|
|
|
0 |
1,047 |
Software Releases - RSS News |
|
|
|
0 |
2,038 |
Complex Event Processing RSS News |
|
|
|
1 |
3,265 |
Shell Programming and Scripting |
|
|
|
2 |
16,638 |
Solaris |
|
|
|
1 |
2,501 |
Shell Programming and Scripting |
|
|
|
0 |
2,159 |
Complex Event Processing RSS News |
|
|
|
2 |
5,212 |
Shell Programming and Scripting |
|
|
|
0 |
1,799 |
Cartoons for Geeks |
|
|
|
2 |
6,460 |
Linux |
history(n) Provides a history for Entry widgets history(n)
__________________________________________________________________________________________________________________________________________________
NAME
history - Provides a history for Entry widgets
SYNOPSIS
package require Tcl 8.4
package require Tk 8.4
package require history ?0.1?
::history::init pathName ?length?
::history::remove pathName
::history::add pathName text
::history::get pathName
::history::clear pathName
::history::configure pathName option ?value?
bell
_________________________________________________________________
DESCRIPTION
This package provides a convenient history mechanism for Entry widgets. The history may be accessed with the up and down arrow keys.
::history::init pathName ?length?
Arranges to remember the history of the named Entry widget. An optional length determines the number of history entries to keep.
This may be changed later with ::history::configure. History entries must be added with the ::history::add command before they can
be seen.
::history::remove pathName
Forgets all history entries for the Entry pathName and removes the history bindings.
::history::add pathName text
This command is used to add history entries to an Entry that has previously had ::history::init called on it. This command should be
called from your Entry handler with the contents of the entry (or whatever you wish to add to the history).
::history::get pathName
This command returns a list containing the history entries for the Entry pathName
::history::clear pathName
This command clears the history list for the named Entry.
::history::configure pathName option ?value?
This command queries or sets configuration options. Currently the options recognized are length and alert. Setting the length deter-
mines the number of history entries to keep for the named Entry. Alert specifies the command to run when the user reaches the end of
the history, it defaults to
bell
entry .e
bind .e <Return> [list ProcessEntry %W]
::history::init .e
pack .e
proc ProcessEntry {w} {
set text [$w get]
if {$text == ""} { return }
::history::add $w $text
puts $text
$w delete 0 end
}
KEYWORDS
entry, history
history 0.1 history(n)