TextUndo(3pm) User Contributed Perl Documentation TextUndo(3pm)NAME
Tk::TextUndo - perl/tk text widget with bindings to undo changes.
SYNOPSIS
use Tk::TextUndo;
$testundo = $parent->TextUndo(?-option=>value, ...?);
DESCRIPTION
This IS-A text widget with an unlimited 'undo' history but without a re'undo' capability.
Bindings
The "TextUndo" widget has the same bindings as the Text widget. In addition there are the following bindings:
Event <L4> <<Undo>>
undo the last change. Pressing <L4> several times undo step by step the changes made to the text widget.
Methods
The "TextUndo" widget has the same methods as "Text" widget. Additional methods for the "TextUndo" widget are:
$text->Load($filename);
Loads the contents of the $filename into the text widget. Load() delete the previous contents of the text widget as well as it's undo
history of the previous file.
$text->Save(?$otherfilename?)
Save contents of the text widget to a file. If the $otherfilename is not specified, the text widget contents writes the file of
$filename used in the last Load() call. If no file was previously Load()'ed an error message pops up. The default filename of the
last Load() call is not overwriten by $otherfilename.
$text->FileName(?$otherfilename?)
If passed an argument sets the file name associated with the loaded document. Returns the current file name associated with the
document.
KEYS
widget, text, undo
SEE ALSO
Tk::Text, Tk::ROText
perl v5.14.2 2010-05-29 TextUndo(3pm)
Check Out this Related Man Page
TextUndo(3) User Contributed Perl Documentation TextUndo(3)NAME
Tk::TextUndo - perl/tk text widget with bindings to undo changes.
SYNOPSIS
use Tk::TextUndo;
$testundo = $parent->TextUndo(?-option=>value, ...?);
DESCRIPTION
This IS-A text widget with an unlimited 'undo' history but without a re'undo' capability.
Bindings
The "TextUndo" widget has the same bindings as the Text widget. In addition there are the following bindings:
Event <L4> <<Undo>>
undo the last change. Pressing <L4> several times undo step by step the changes made to the text widget.
Methods
The "TextUndo" widget has the same methods as "Text" widget. Additional methods for the "TextUndo" widget are:
$text->Load($filename);
Loads the contents of the $filename into the text widget. Load() delete the previous contents of the text widget as well as it's undo
history of the previous file.
$text->Save(?$otherfilename?)
Save contents of the text widget to a file. If the $otherfilename is not specified, the text widget contents writes the file of
$filename used in the last Load() call. If no file was previously Load()'ed an error message pops up. The default filename of the
last Load() call is not overwriten by $otherfilename.
$text->FileName(?$otherfilename?)
If passed an argument sets the file name associated with the loaded document. Returns the current file name associated with the
document.
KEYS
widget, text, undo
SEE ALSO
Tk::Text, Tk::ROText
perl v5.12.1 2007-05-05 TextUndo(3)
How would i go about the following,
I open a text document with loads of text, about 150 lines
e.g. "Best Time: 02:55.88"
How would i get perl just to take the time and put into a variable but also be able to take any time like that from the file??
i've done this so far to open the... (2 Replies)
I am wanting to automate a process that includes the step of appending to a filename a string of text that's contained inside the file. I.e. if filename A.fileA contains a string of text that reads 1234 after the phrase ABC, I want the shell script file to rename the file 1234_FileChecked_A.fileA.... (3 Replies)
Hi everybody,
I just need desired ouput from text file which should have folowing format;
"2007-06-25 00:03:32.926+05:30",12354369,"Load","Completed","Rs.-5,556.00",9452217714
"2007-06-25 00:06:57.357+05:30",12354371,"Load","Completed","Rs.-56.00",9415766266
"2007-06-25... (1 Reply)
If I do a "history" and get a list of commands that I've done before, can I save them to a text file? If not, then would there be any other ways around this? Also, what's a snapshot?
Thanks in advance. (6 Replies)
I generally use 'u' to do undo in vi editor. The problem is that it only does one level of undo.
Is it possible to recursively undo all the changes in vi editor till we reach the original stage. (2 Replies)
Hi,
Could anyone please advise if its possible in unix to undo the changes for a file that has been overwrriten.
By mistake i have overwritten a file and now i need the original file, is there a way?
Please Help!!! (2 Replies)
I am trying to use the text of one file as a text file name with and the text of another as the contents of that text file. Is this possible? Thank you :).
For example, in the two files attached, target.txt has:
1.txt
2.txt
and out_parse.txt has:
13 20763642 20763642 C G... (5 Replies)
Hello there,
I've been trying to do this half of the day and it's like I haven't come a single step further, so I hope you guys can help me with my problem:
I have a text file that contains strings that should not be there and which I want to delete automatically from the command line. The... (4 Replies)