source: trunk/tkcon/docs/bindings.html @ 931

Last change on this file since 931 was 931, checked in by toby, 11 years ago

include rest of files

File size: 5.8 KB
Line 
1<HTML>
2<HEAD>
3<TITLE>tkcon: Special Bindings</TITLE>
4<LINK REL="STYLESHEET" TYPE="text/css" HREF="./style.css">
5</HEAD>
6
7<BODY BGCOLOR=#FFFFFF>
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<TH><FONT SIZE=+3>tkcon: Special Bindings</FONT></TH>
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"
17height="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 CLASS="hi"><A HREF="index.html" CLASS="hi">Documentation</A></TH>
28<TH><A HREF="purpose.html">Purpose &amp; Features</A></TH>
29<TH><A HREF="limits.html">Limitations</A></TH>
30<TH><A HREF="todo.html">To&nbsp;Do</A></TH>
31<TH><A HREF="license.terms">License</A></TH>
32</TR><TR>
33<TH COLSPAN=2><A HREF="plugin.html">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</TD></TR><TR><TD>
40<!-- start secondary navigation table -->
41<TABLE BORDER=1 CELLPADDING=2 CELLSPACING=2 BGCOLOR=#BBBBBB width=100%>
42<TR>
43<TH><A HREF="start.html">Getting Started</A></TH>
44<TH CLASS="hi2"><A HREF="bindings.html" CLASS="hi2">Special Bindings</A></TH>
45<TH><A HREF="procs.html">Procedures</A></TH>
46<TH><A HREF="demopic.gif">Screenshot</A></TH>
47</TR>
48<TR>
49<TH><A HREF="dump.html"><CODE>dump</CODE></A></TH>
50<TH><A HREF="tkcon.html"><CODE>tkcon</CODE></A></TH>
51<TH><A HREF="idebug.html"><CODE>idebug</CODE></A></TH>
52<TH><A HREF="observe.html"><CODE>observe</CODE></A></TH>
53</TR>
54</TABLE>
55<!-- end secondary navigation table -->
56</TD></TR><TR><TD BGCOLOR=#FFFFFF>
57<DIV CLASS="indent">
58 <P>
59Most of the bindings are the same as for the Text widget.  Some have been
60modified to make sure that the integrity of the console is maintained.
61Others have been added to enhance the usefulness of the console.  Only
62the modified or new bindings are listed here.
63 <P>
64
65<DL compact>
66<DT> <B>Control-x</B> or <B>Cut</B> (on Sparc5 keyboards)
67<DD> Cut
68<DT> <B>Control-c</B> or <B>Copy</B> (on Sparc5 keyboards)
69<DD> Copy
70<DT> <B>Control-v</B> or <B>Paste</B> (on Sparc5 keyboards)
71<DD> Paste
72<DT> <B>Insert</B>
73<DD> Insert (duh).
74 <P>
75<DT> <B>Up</B>
76<DD> Goes up one level in the commands line history when cursor is on the
77prompt line, otherwise it moves through the buffer
78<DT> <B>Down</B>
79<DD> Goes down one level in the commands line history when cursor is on the
80last line of the buffer, otherwise it moves through the buffer
81<DT> <B>Control-p</B>
82<DD> Goes up one level in the commands line history
83<DT> <B>Control-n</B>
84<DD> Goes down one level in the commands line history
85 <P>
86<DT> <B>Tab</B>
87<DD> Tries to expand file path names, then variable names, then proc names.
88<DT> <B>Escape</B>
89<DD> Tries to expand file path names.
90<DT> <B>Control-P</B>
91<DD> Tries to expand procedure names.  The procedure names will be those
92that are actually in the attached interpreter (unless nontcl is specified,
93in which case it always does the lookup in the default slave interpreter).
94<DT> <B>Control-V</B>
95<DD> Tries to expand variable names (those returned by [info vars]).
96It's search behavior is like that for procedure names.
97 <P>
98<DT> <B>Return</B> or <B>Enter</B>
99<DD> Evaluates the current command line if it is a complete command,
100otherwise it just goes to a new line
101<DT> <B>Control-a</B>
102<DD> Go to the beginning of the current command line
103<DT> <B>Control-l</B>
104<DD> Clear the entire console buffer
105<DT> <B>Control-r</B>
106<DD> Searches backwards in the history for any command that contains the
107string in the current command line.  Repeatable to search farther back.
108The matching substring off the found command will blink.
109<DT> <B>Control-s</B>
110<DD> As above, but searches forward (only useful if you searched too far back).
111<DT> <B>Control-t</B>
112<DD> Transposes characters
113<DT> <B>Control-u</B>
114<DD> Clear the current command line
115<DT> <B>Control-z</B>
116<DD> Saves current command line in a buffer that can be retrieved with
117another <B>Control-z</B>.  If the current command line is empty, then any
118saved command is retrieved without being overwritten, otherwise the
119current contents get swapped with what's in the saved command buffer.
120 <P>
121<DT> <B>Control-Key-1</B>
122<DD> Attaches console to the console's slave interpreter
123<DT> <B>Control-Key-2</B>
124<DD> Attaches console to the console's master interpreter
125<DT> <B>Control-Key-3</B>
126<DD> Attaches console to main TkCon interpreter
127<DT> <B>Control-A</B>
128<DD> Pops up the "About" dialog
129<DT> <B>Control-N</B>
130<DD> Creates a new console.  Each console has separate state, including
131it's own widget hierarchy (it's a slave interpreter).
132<DT> <B>Control-q</B>
133<DD> Close the current console OR Quit the program (depends on the value
134of TKCON(slaveexit)).
135<DT> <B>Control-w</B>
136<DD> Closes the current console.  Closing the main console will exit the
137program (something has to control all the slaves...)
138</DL>
139
140TkCon also has <B>electric bracing</B> (similar to that in emacs).  It will
141highlight matching pairs of {}'s, []'s, ()'s and ""'s.  For the first three,
142if there is no matching left element for the right, then it blinks the
143entire current command line.  For the double quote, if there is no proper
144match then it just blinks the current double quote character.  It does
145properly recognize most escaping (except escaped escapes), but does not look
146for commenting (why would you interactively put comments in?).
147</DIV>
148</TD></TR></TABLE>
149
150<HR NOSHADE SIZE=1>
151<ADDRESS><FONT SIZE=2>&copy;
152<A HREF="mailto:jeff.hobbs@acm.org">Jeffrey Hobbs</A></FONT></ADDRESS>
153
154</BODY>
155</HTML>
Note: See TracBrowser for help on using the repository browser.