Jeff Hobbs [Sat, 23 Jun 2007 00:53:41 +0000 (00:53 +0000)]
* tkcon.tcl (::tkcon::EvalCmd): add OPT(resultfilter) and 'tkcon
resultfilter ?cmd?' to allow optional result filter command.
Command will be passed result code and data and must return what
tkcon will return to the user. Command is run in attached slave.
Ensure that initial files are sources at level #0.
Convert args after (--|-argv|-args) into slave arguments and set
them as the main $::argv/$::argc for propagation.
Jeff Hobbs [Wed, 25 Jan 2006 23:44:18 +0000 (23:44 +0000)]
* tkcon.tcl (MenuConfigure): Fix ActiveTcl Help link when pointing
to a file with space in path. [Bug 1408425]
(::tkcon::Save, ::tkcon::Load): in VFS paths, use the X11 dialogs
that support viewing in VFS dirs.
Jeff Hobbs [Mon, 12 Sep 2005 19:07:16 +0000 (19:07 +0000)]
* tkcon.tcl (::tkcon::AtSource): do not require argv to be defined
(edit): enable text -undo in editor
(::tkcon::InitUI): shrink aqua resize control space alloted
Jeff Hobbs [Thu, 14 Jul 2005 22:57:44 +0000 (22:57 +0000)]
* tkcon.tcl: add ::tkcon::OPT(maxlinelen) (default 0 == unlimited)
and 'tkcon linelength ?value?' to optionally limit long result
lines. True result is still captured in $_ (and 'puts $_' works).
Jeff Hobbs [Thu, 11 Nov 2004 17:22:12 +0000 (17:22 +0000)]
* tkcon.tcl (::tkcon::DeleteTab): allow for exit code to be passed
when exit is aliased to DeleteTab. [Bug 1064462]
(::tkcon::Expect): graphicsSet isn't valid yet
Jeff Hobbs [Thu, 24 Jun 2004 22:17:58 +0000 (22:17 +0000)]
* tkcon.tcl (DeleteTab, Destroy): improve the 'exit' handling so
that 'exit' in the first created tab doesn't do a full exit.
'exit' in the last tab of the first created console still exits
tkcon, fixing that requires a rearch of the console
creation/management.
(InitTab): Have the <Configure> binding only fire for the root
window, not for each tab.
(GotoTab): Keep tabs around - just raise/lower instead of grid
remove/add. break on Next/Prev Tab binding to get focus right.
(Prompt): return if console w doesn't exist
Jeff Hobbs [Mon, 1 Mar 2004 21:56:11 +0000 (21:56 +0000)]
* tkcon.tcl: correct 'exit' in extra tabs.
make tkconfixed font Courier -12 (was Courier 10), use it on unix.
Add extra space for OS X/Aqua in statusbar (for resize handle).
Only use -overrelief in 8.4
Jeff Hobbs [Thu, 5 Feb 2004 20:30:15 +0000 (20:30 +0000)]
* tkcon.tcl: brought code back to 8.0 compatability.
Use $_ as last cached result var (was ${}).
Ensure hoterrors garbage collection occurs across all tabs.
Jeff Hobbs [Wed, 28 Jan 2004 21:06:15 +0000 (21:06 +0000)]
* tkcon.tcl: don't use menu tearoffs
remove recognizable email addresses from source
enabled more send variants (comm, dde, winsend) [bug 649257] (thoyts)
change Packages menu (that would be too large with many packages)
to a Manage Packages dialog.
tightened up Create Socket dialog, added <Escape> dismiss binding.
Moved source time initialization into ::tkcon::AtSource to guard
against leftover vars and just better encapsulate it.
Jeff Hobbs [Fri, 21 Feb 2003 00:45:30 +0000 (00:45 +0000)]
* tkcon.tcl (EvalCmd): set $:: (aka ${}) var to last command result.
(EvalOther): use tk_messageBox instead of tk_dialog
(Init): allow 'edit' to be overridden using OPT(edit)
Jeff Hobbs [Tue, 8 Oct 2002 18:51:00 +0000 (18:51 +0000)]
* tkcon.tcl (tcl_unknown): allow ::namespace (:'s) to be
recognized. (koloska)
(MainInit): add option for overriding exit command.
(InitUI): add option to control the wm protocol for WM_DELETE_WINDOW.
Jeff Hobbs [Tue, 4 Jun 2002 02:25:59 +0000 (02:25 +0000)]
* tkcon.tcl: fixed Retrieve to use the proxy info (Thoyts).
Added code so that tkcon.tcl can be sourced in and used like a
quasi-package. Once sourced, you can do a 'package require tkcon'
(there is no pkgIndex.tcl for it), and the first 'tkcon show' will
initialize anything that is needed.
(observe): corrected variables tracing to not allow duplicates.
(dump): improved check for empty named arrays as well as locally
aliased vars in var dumps.
Use the 'fixed' font on unix by default.
Jeff Hobbs [Sat, 23 Feb 2002 06:52:40 +0000 (06:52 +0000)]
* tkcon.tcl (AddSlaveHistory): changed history to not add the
command if it is the same as the previous command (it will still
be evaluated). (soderstrom)
Added panedwindow and labelframe as recognized Tk commands.
Jeff Hobbs [Thu, 24 Jan 2002 19:44:53 +0000 (19:44 +0000)]
* docs/procs.html:
* tkcon.tcl (what): changed to differentiate between 'array' and
'scalar' instead of just returning 'variable'.
(which): called what in uplevel to get scope right.
Jeff Hobbs [Wed, 23 Jan 2002 03:32:48 +0000 (03:32 +0000)]
* tkcon.tcl (ExpandPathname): use a safer regsub to first unescape
the str, then to protect it in the glob.
(dir): Use -directory arg in 8.3+ for better results.
Jeff Hobbs [Thu, 23 Aug 2001 00:50:25 +0000 (00:50 +0000)]
* docs/bindings.html: noted ^r/^s change.
* tkcon.tcl (Event): changed event ^r/^s searching to search for
any matching substring, and blink the substring.
Added statusbar, default off (not much in status yet).
Jeff Hobbs [Mon, 20 Aug 2001 19:10:48 +0000 (19:10 +0000)]
* tkcon.tcl (EvalNamespace): fixed to work when attached to a
foreign interpreter. [Bug #453431]
Added fix that allows access to Tk privates in 8.4. Still needs
a long-term fix. [Bug #450865] (porter)
Jeff Hobbs [Wed, 20 Jun 2001 23:40:48 +0000 (23:40 +0000)]
* tkcon.tcl (InitUI): moved wm protocol inside check to not run
under plugin.
(::tkcon::Retrieve): added a new method to allow tkcon to retrieve
the latest version of itself.
Jeff Hobbs [Wed, 20 Jun 2001 03:17:09 +0000 (03:17 +0000)]
* tkcon.tcl (dir): added fallback in generic dir command to not
require being run in tkcon.
(Init): Changed around how all options are initialized to allow
for tkcon embedders to set their own defaults. Added a usehistory
PRIV key that tells us whether to load/save history files. Added
showOnStartup PRIV key to control whether tkcon should deiconify
itself on startup. Changed setting root to .tkcon to ensure that
root was just . before.
Jeff Hobbs [Mon, 18 Jun 2001 17:24:46 +0000 (17:24 +0000)]
* tkcon.tcl: (InitUI) added WM_DELETE_WINDOW hook to exit to
correctly deconstruct slave consoles.
(tkcon congets/getc) added tkcon show to ensure that tkcon would
be displayed when input is expected.
(GetSelection) new command to handle getting selection, this
supports the new UTF8_STRING type.
Jeff Hobbs [Mon, 28 May 2001 08:47:12 +0000 (08:47 +0000)]
* docs/start.html: added note about ::tkcon::OPT(gets) var.
* docs/tkcon.html: improved docs for tkcon *get* methods.
* tkcon.tcl: reinstituted override of gets by default to use the
tkcon console based gets.
Jeff Hobbs [Mon, 28 May 2001 07:31:45 +0000 (07:31 +0000)]
* tkcon.tcl (dump): corrected outputting local vars with dump.
Added RCS info to PRIV array and About box.
(tkcon congets) corrected congets to set the limit and insert
properly to return data without needing to call the prompt.
(tkcon set) corrected to return [array get] string for arrays,
and scalar value for vars.
Placed exact level value to all calls to uplevel and upvar.
Jeff Hobbs [Thu, 17 May 2001 21:05:48 +0000 (21:05 +0000)]
* tkcon.tcl: make check for actual tkcon root existence to allow
for setting the var ($::tkcon::PRIV(root)) in controlling apps to
better control the root window.