summaryrefslogtreecommitdiffstats
path: root/tkcon/docs/plugin.html
blob: 1cc18969ce728483f3ec28d9f59019cf8fd7a8bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
<HTML>
<HEAD>
<TITLE>tkcon: Tcl Plugin Stripped Demo</TITLE>
<LINK REL="STYLESHEET" TYPE="text/css" HREF="./style.css">
</HEAD>

<BODY>

<TABLE WIDTH=100% BORDER=0 CELLSPACING=2 CELLPADDING=0 BGCOLOR=#000000><TR><TD>
<!-- start header info -->
<TABLE WIDTH=100% BORDER=0 CELLSPACING=0 CELLPADDING=0 BGCOLOR=#FFFFFF>
<TR>
<TD><FONT SIZE=+3><B>tkcon Documentation</B> (May 2001)</FONT></TD>
<TD align=right>
<A href="http://tkcon.sourceforge.net/"> 
<IMG src="http://sourceforge.net/sflogo.php?group_id=11462&type=1" width="88"
height="31" border="0" alt="SourceForge Logo"></A>
</TD>
</TR>
</TABLE>
<!-- end header info -->

</TD></TR><TR><TD>
<!-- start main navigation table -->
<TABLE BORDER=1 CELLPADDING=2 CELLSPACING=2 BGCOLOR=#CCCCCC width=100%>
<TR>
<TH><A HREF="index.html">Documentation</A></TH>
<TH><A HREF="purpose.html">Purpose &amp; Features</A></TH>
<TH><A HREF="limits.html">Limitations</A></TH>
<TH><A HREF="todo.html">To&nbsp;Do</A></TH>
<TH><A HREF="license.terms">License</A></TH>
</TR><TR>
<TH COLSPAN=2 CLASS="hi"><A HREF="plugin.html" CLASS="hi">Online Demo</A>
(requires <A HREF="http://www.tcl.tk/software/plugin/">Tk plugin</A>)</TH>
<TH COLSPAN=3><A HREF="nontcl.html">Using TkCon with other Tk Languages</A></TH>
</TR>
</TABLE>
<!-- end main navigation table -->

</TD></TR><TR><TD BGCOLOR=#FFFFFF>
<DIV CLASS="indent">
<P>
This is the full tkcon script when run inside the plugin.  It feels like a
stripped down version of tkcon, but the only limitations are those
established by the plugin.  You can test the basic console features and get
a feel for the mutli-color output.  Below the demo are some ideas to try
out.  v2+ of the plugin is distributed with a megawidget version of tkcon for
debugging tclets.  The demo below uses the CVS head of tkcon.

<P>
  <OBJECT
        ID="PluginHostCtrl"
        CLASSID="CLSID:14E78123-A693-4F27-B6EE-DDDE18F93D3A"
        WIDTH="600"
        HEIGHT="350"
>
          <PARAM name="type" value="application/x-tcl"/>
          <PARAM name="pluginspage" value="http://www.tcl.tk/software/plugin/"/>
          <PARAM name="src"  value="http://tkcon.cvs.sourceforge.net/tkcon/tkcon/tkcon.tcl?rev=HEAD&content-type=application/x-tcl"/>

        <EMBED
          TYPE="application/x-tcl"
          PLUGINSPAGE="http://www.tcl.tk/software/plugin/"
          FRAMEBORDER="NO"
          WIDTH="600"
          HEIGHT="350"
          SRC="http://tkcon.cvs.sourceforge.net/tkcon/tkcon/tkcon.tcl?rev=HEAD&content-type=application/x-tcl"
        >
        </EMBED>
  </OBJECT>
</P>

Have a look at some of the features: (culled from the
<A HREF="index.html">tkcon documentation</A>)
<UL>
<LI> <B>Variable / Path / Procedure Name Expansion.</B>  Type in
<CODE>set tc</CODE> at the prompt.  Hit <I>&lt;Control-Shift-V&gt;</I>.
<CODE>set tcl_</CODE> should now be visible.
Hit <I>&lt;Control-Shift-V&gt;</I> again.  You should see the rest of
the completions printed out for you.  Works the same for procedures
and files paths (file access restricted from plugin).  Works properly
when spaces or other funny characters are including in the name.

<LI> <B>Command Highlighting.</B> Note that <CODE>set</CODE> should be in
green, denoting it is a recognized command in that interpreter.

<LI> <B>Electric Character Matching.</B>  Watch while you type the
following: <CODE>proc foo { a b } { puts [list $a $b] }</CODE>.  Did you
notice the blink matching of the braces?  Yes, it's smart.

<LI> <B>Command History.</B>  Use the Up/Down arrows or
<I>&lt;Control-p&gt;</I>/<I>&lt;Control-n&gt;</I> to peruse the command
history.  <I>&lt;Control-r&gt;</I>/<I>&lt;Control-s&gt;</I> Actually
does command history matching (like tcsh or other advanced Unix shells).

<LI> <B>Useful Colorization.</B> Having defined <CODE>foo</CODE> above, type
in <CODE>foo hey</CODE>.  Note that the error comes back in red.  Go up one
in the command history and add <CODE> you</CODE> and see that regular
stdout output comes through in blue (the colors are configurable).

<LI> <B>Cut/Copy/Paste.</B>  You should be able to do that between outside
windows and TkCon.  The default keys are
<I>&lt;Control-x&gt;</I>/<I>&lt;Control-c&gt;</I>/<I>&lt;Control-v&gt;</I>.

</UL>
</DIV>
</TD></TR></TABLE>

<HR NOSHADE SIZE=1>
<ADDRESS><FONT SIZE=2>&copy; Jeffrey Hobbs</FONT></ADDRESS>

</BODY>
</HTML>