taotk::meta::console - Class taotk::meta::console
Ancestors: taotk::meta::console, taotk::meta::text, taotk::meta::container, taotk::meta::widget, oo::object, tao::moac By the overt act of typing this comment, the author of this code releases it into the public domain. No claim of copyright is made. In place of a legal notice, here is a blessing: May you do good and not evil. May you find forgiveness for yourself and forgive others. May you share freely, never taking more than you give. This file contains code use to implement a simple command-line console for Tcl/Tk.
Called whenever the mouse leaves the boundries of the widget while button 1 is held down.
Called whenever the mouse moves while button-1 is held down.
Erase the character to the left of the cursor
Called when the mouse button is pressed at position $x,$y on the console widget.
This routine cancels the scrolling motor if it is active
Return 1 if the selection exists and is contained entirely on the input line. Return 2 if the selection exists but is not entirely on the input line. Return 0 if the selection does not exist.
Erase everything from the console above the insertion line.
Do a Copy operation on the stuff currently selected.
Do a Cut operation if possible. Cuts are only allowed if the current selection is entirely contained on the current input line.
Erase the character to the right of the cursor
Enable or disable entries in the Edit menu
Move the cursor to the end of the current line
Called when "Enter" is pressed. Do something with the line of text that was entered.
Erase to the end of the line
Move the cursor to the beginning of the current line
Insert a single character at the insertion cursor
Move the cursor one character to the left
This routine is called to automatically scroll the window when the mouse drags offscreen.
Find the boundry between characters that is nearest to $x,$y
Change the line to the next line
Do a paste opeation.
Change the line to the previous line
Insert test at the "out" mark. The "out" mark is always before the input line. New text appears on the line prior to the current input line.
Move the cursor one character to the right
Prompt the user for the name of a writable file. Then write the entire contents of the console screen to that file.
This routine extends the selection to the point specified by {$x,$y}
Change the contents of the entry line
Prompt for the user to select an input file, the source that file.
Sean Woods
This document, and the package it describes, will undoubtedly contain bugs and other problems. Please report such in the category taotk of the Odielib Trackers. Please also report any ideas for enhancements you may have for either package and/or documentation.
Class
Copyright © 2000-2014 Sean Woods <yoda@etoyoc.com>