1 | <HTML> |
---|
2 | <HEAD> |
---|
3 | <TITLE>tkcon: Tcl Plugin Stripped Demo</TITLE> |
---|
4 | <LINK REL="STYLESHEET" TYPE="text/css" HREF="./style.css"> |
---|
5 | </HEAD> |
---|
6 | |
---|
7 | <BODY> |
---|
8 | |
---|
9 | <TABLE WIDTH=100% BORDER=0 CELLSPACING=2 CELLPADDING=0 BGCOLOR=#000000><TR><TD> |
---|
10 | <!-- start header info --> |
---|
11 | <TABLE WIDTH=100% BORDER=0 CELLSPACING=0 CELLPADDING=0 BGCOLOR=#FFFFFF> |
---|
12 | <TR> |
---|
13 | <TD><FONT SIZE=+3><B>tkcon Documentation</B> (May 2001)</FONT></TD> |
---|
14 | <TD align=right> |
---|
15 | <A href="http://tkcon.sourceforge.net/"> |
---|
16 | <IMG src="http://sourceforge.net/sflogo.php?group_id=11462&type=1" width="88" |
---|
17 | height="31" border="0" alt="SourceForge Logo"></A> |
---|
18 | </TD> |
---|
19 | </TR> |
---|
20 | </TABLE> |
---|
21 | <!-- end header info --> |
---|
22 | |
---|
23 | </TD></TR><TR><TD> |
---|
24 | <!-- start main navigation table --> |
---|
25 | <TABLE BORDER=1 CELLPADDING=2 CELLSPACING=2 BGCOLOR=#CCCCCC width=100%> |
---|
26 | <TR> |
---|
27 | <TH><A HREF="index.html">Documentation</A></TH> |
---|
28 | <TH><A HREF="purpose.html">Purpose & Features</A></TH> |
---|
29 | <TH><A HREF="limits.html">Limitations</A></TH> |
---|
30 | <TH><A HREF="todo.html">To Do</A></TH> |
---|
31 | <TH><A HREF="license.terms">License</A></TH> |
---|
32 | </TR><TR> |
---|
33 | <TH COLSPAN=2 CLASS="hi"><A HREF="plugin.html" CLASS="hi">Online Demo</A> |
---|
34 | (requires <A HREF="http://tcl.activestate.com/software/plugin/">Tk plugin</A>)</TH> |
---|
35 | <TH COLSPAN=3><A HREF="nontcl.html">Using TkCon with other Tk Languages</A></TH> |
---|
36 | </TR> |
---|
37 | </TABLE> |
---|
38 | <!-- end main navigation table --> |
---|
39 | |
---|
40 | </TD></TR><TR><TD BGCOLOR=#FFFFFF> |
---|
41 | <DIV CLASS="indent"> |
---|
42 | <P> |
---|
43 | This is the full tkcon script when run inside the plugin. It feels like a |
---|
44 | stripped down version of tkcon, but the only limitations are those |
---|
45 | established by the plugin. You can test the basic console features and get |
---|
46 | a feel for the mutli-color output. Below the demo are some ideas to try |
---|
47 | out. v2 of the plugin is distributed with a megawidget version of tkcon for |
---|
48 | debugging tclets. The demo below uses rev 1.28 of tkcon in CVS |
---|
49 | (this correlates to v2.1 of tkcon). |
---|
50 | |
---|
51 | <P> |
---|
52 | <embed src="http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/~checkout~/tkcon/tkcon/tkcon.tcl?rev=HEAD&content-type=application/x-tcl" width=630 height=350> |
---|
53 | </P> |
---|
54 | |
---|
55 | Have a look at some of the features: (culled from the |
---|
56 | <A HREF="./">tkcon documentation</A>) |
---|
57 | <UL> |
---|
58 | <LI> <B>Variable / Path / Procedure Name Expansion.</B> Type in |
---|
59 | <CODE>set tc</CODE> at the prompt. Hit <I><Control-Shift-V></I>. |
---|
60 | <CODE>set tcl_</CODE> should now be visible. |
---|
61 | Hit <I><Control-Shift-V></I> again. You should see the rest of |
---|
62 | the completions printed out for you. Works the same for procedures |
---|
63 | and files paths (file access restricted from plugin). Works properly |
---|
64 | when spaces or other funny characters are including in the name. |
---|
65 | |
---|
66 | <LI> <B>Command Highlighting.</B> Note that <CODE>set</CODE> should be in |
---|
67 | green, denoting it is a recognized command in that interpreter. |
---|
68 | |
---|
69 | <LI> <B>Electric Character Matching.</B> Watch while you type the |
---|
70 | following: <CODE>proc foo { a b } { puts [list $a $b] }</CODE>. Did you |
---|
71 | notice the blink matching of the braces? Yes, it's smart. |
---|
72 | |
---|
73 | <LI> <B>Command History.</B> Use the Up/Down arrows or |
---|
74 | <I><Control-p></I>/<I><Control-n></I> to peruse the command |
---|
75 | history. <I><Control-r></I>/<I><Control-s></I> Actually |
---|
76 | does command history matching (like tcsh or other advanced Unix shells). |
---|
77 | |
---|
78 | <LI> <B>Useful Colorization.</B> Having defined <CODE>foo</CODE> above, type |
---|
79 | in <CODE>foo hey</CODE>. Note that the error comes back in red. Go up one |
---|
80 | in the command history and add <CODE> you</CODE> and see that regular |
---|
81 | stdout output comes through in blue (the colors are configurable). |
---|
82 | |
---|
83 | <LI> <B>Cut/Copy/Paste.</B> You should be able to do that between outside |
---|
84 | windows and TkCon. The default keys are |
---|
85 | <I><Control-x></I>/<I><Control-c></I>/<I><Control-v></I>. |
---|
86 | |
---|
87 | </UL> |
---|
88 | </DIV> |
---|
89 | </TD></TR></TABLE> |
---|
90 | |
---|
91 | <HR NOSHADE SIZE=1> |
---|
92 | <ADDRESS><FONT SIZE=2>© |
---|
93 | <A HREF="mailto:jeff.hobbs@acm.org">Jeffrey Hobbs</A></FONT></ADDRESS> |
---|
94 | |
---|
95 | </BODY> |
---|
96 | </HTML> |
---|