Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

tk::textundo(3pm) [debian man page]

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)
Man Page

13 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Perl: taking text from a .txt file

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)
Discussion started by: perleo
2 Replies

2. Programming

Load error

(2 Replies)
Discussion started by: musavir19
2 Replies

3. Shell Programming and Scripting

Appending to filename a string of text grep finds

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)
Discussion started by: HLee1981
3 Replies

4. Shell Programming and Scripting

remove specific lines from flat file using perl

Hi, Here is wat im looking for.. i have a flat file which looks like this.. 00 * * * * .. .. * * text text text COL1 COL2 ----- ----- 1 a (12 Replies)
Discussion started by: meghana
12 Replies

5. HP-UX

Desired Format !

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)
Discussion started by: prasanth_babu
1 Replies

6. UNIX for Dummies Questions & Answers

Saving stuff to a text file

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)
Discussion started by: DrManhattan
6 Replies

7. Shell Programming and Scripting

Doing undo in Vi editor

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)
Discussion started by: paragkalra
2 Replies

8. Shell Programming and Scripting

Undo in unix

Hi All, Is there any undo option is there in unix same as recycle bin in windows? (5 Replies)
Discussion started by: Jairaj
5 Replies

9. UNIX for Dummies Questions & Answers

text manipulation help

Hello, How can I replace in a text document a space " " with ":"? (3 Replies)
Discussion started by: galford
3 Replies

10. Shell Programming and Scripting

Load text remove

Hi i want to remove a load text. current output <load>Full Load</load> desired output Full Load (12 Replies)
Discussion started by: learnbash
12 Replies

11. Shell Programming and Scripting

How to Undo overwrite file in UNIX?

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)
Discussion started by: mail.chiranjit
2 Replies

12. Shell Programming and Scripting

Use text of one file to save in another

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)
Discussion started by: cmccabe
5 Replies

13. Shell Programming and Scripting

Find and delete a certain HEX and its following value in a file

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)
Discussion started by: surfi
4 Replies