Tk-Workspace
view release on metacpan or search on metacpan
Workspace.txt view on Meta::CPAN
File Menu
Import Text -- Insert the contents of a selected text file at the
insertion point.
Export Text -- Write the contents of the workspace to a text file.
The Import and Export Text functions allow saving to files on remote
hosts using FTP, if the Perl Net::FTP module is installed. Please refer
to the file INSTALL in the distribution archive and the
Tk::RemoteFileSelect manual page.
System Command -- Prompts for the name of a command to be executed by
the shell, /bin/sh. The output is inserted into the workspace.
For example, to insert a manual page into the workspace, enter:
man <programname> | colcrt - | col -b
Shell -- Starts an interactive shell. The prompt is the PS1 prompt of
the environment where the workspace was started. At present the
workspace shell recognizes only a subset of the bash prompt variables,
and does not implement command history or setting of environment
variables in the subshell.
Due to I/O blocking, results can be unpredictable, especially if the
called program causes an eof condition on STDERR. For details refer to
the Tk::Shell POD documentation.
Refer to the bash(1) manual page for further information.
Typing 'exit' leaves the shell and returns the workspace to normal text
editing mode.
Filter -- Specify a filter and output destination for the text in the
Workspace. A ``filter'' is defined as a program that takes its input
from standard input, STDIN, and sends its output to standard output,
STDOUT. By default, output is inserted into the Workspace at the cursor
position. Other destinations are:
- File--Write output to the file name specified.
- Terminal--Write output to the Workspace's STDOUT or to a
character device specified as the output file.
- New Workspace--Write output to a new Workspace with the
name specified.
If the Perl Net::FTP module is installed, filter output can be sent to a
remote host, using the pathname syntax, hostname:/filepathname .
Save -- Save the workspace to disk.
Quit -- Close the workspace window, optionally saving to disk.
Workspaces are saved with file mode permissions 0700 (read, write, and
execute for the owner of the file).
Edit Menu
Undo -- Reverse the next previous change to the text.
Cut -- Delete the selected text and place it on the X clipboard.
Copy -- Copy the selected text to the X clipboard.
Paste -- Insert text from the X clipboard at the insertion point.
Evaluate Selection -- Interpret the selected text as Perl code.
Search & Replace -- Open a dialog box to enter search and/or replace
strings. Users can select options for exact upper/lower case matching,
regular expression searches, forward or backward searches, and no query
on replace. If "Replace without Asking" is selected, then all search
matches will be replaced. The default is to prompt before the
replacement. Replacements for regular expression matches are not
supported.
Goto Line -- Go to the line entered by the user.
Which Line -- Report the line and column position of the insertion
point.
Options Menu
Wrap -- Select how the text should wrap at the right margin.
Scroll Bars -- Select from scroll bars at right or left, top or bottom
of the text area.
Encoding -- Select the encoding to use when exporting text. Does not
affect the Workspace text itself. When importing, the text is mapped
into ISO-8859-1, regardless of encoding. This option is only available
if the UTF16 libraries are installed on the system. If they aren't, then
the Workspace uses the default ISO 8859-1 encoding. Refer to the file
INSTALL in the distribution archive for information about the required
libraries.
Show/Hide Menubar -- Toggle whether the menubar is visible. A popup
version of the menus is always available by pressing the right mouse
button (Button 3) over the text area.
Color Editor -- Pops up a Color Editor window. You can select the text
attribute that you want to change from the Colors -> Color Attributes
menu. If your system libraries have an rgb.txt file, a list of the
available colors is displayed on the left-hand side of the window.
Double-clicking on a color name, or selecting its color space parameters
from the sliders in the middle of the ColorEditor, displays that color
in the swatch on the right-hand side of the window. Pressing the
Apply... button at the bottom of the Color Editor applies the color
selection to the text. The most useful attributes for Workspace text are
foreground, background, and insertBackground.
Text Font -- Select text font from list of system fonts.
Help Menu
About -- Report name of workspace and modification time, and version of
Workspace.pm library.
Help -- Display the Workspace.pm POD documentation in a text window
formatted by pod2text.
KEY BINDINGS
For further information, please refer to the Tk::Text and Tk::bind man
pages.
( run in 1.557 second using v1.01-cache-2.11-cpan-84e82930d8c )