Overview
Comment: | .csymrc .tclshrc .vimrc tcltags StdOper.h StdVector.h vimrc Modified Files: .csymrc Containers.h HKLlink.h TclVector.h config.h.in configure.in csym.cc hkl.h misc.cc string.priv.h TODO tclreadline.c tclreadlineSetup.tcl.in |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
0db7d87bfc2a3fce98164fa6e3f40b82 |
User & Date: | johannes@zellner.org on 1999-09-03 00:14:49 |
Other Links: | manifest | tags |
Context
1999-09-03
| ||
08:21 | tclreadlineSetup.tcl.in check-in: d3a9894793 user: johannes@zellner.org tags: trunk | |
00:14 | .csymrc .tclshrc .vimrc tcltags StdOper.h StdVector.h vimrc Modified Files: .csymrc Containers.h HKLlink.h TclVector.h config.h.in configure.in csym.cc hkl.h misc.cc string.priv.h TODO tclreadline.c tclreadlineSetup.tcl.in check-in: 0db7d87bfc user: johannes@zellner.org tags: trunk | |
1999-09-01
| ||
03:22 | Modified Files: README tclreadlineSetup.tcl.in Added Files: Makefile.in tclreadline.c tclreadlineConfig.sh.in tclreadlineInit.tcl.in check-in: b7f4ea7980 user: johannes@zellner.org tags: trunk | |
Changes
Modified TODO from [ad5b37c53f] to [9c4e002210].
1 2 3 | 1 2 3 4 5 6 7 8 9 10 11 12 | - - + + | /* ================================================================== |
︙ | |||
36 37 38 39 40 41 42 | 36 37 38 39 40 41 42 43 44 45 46 47 48 | + + + + + + | wird trotzdem nur auf $a( completed. --> ändern. + custom completers: prüfen, ob ein completer für eine Funktion da ist ... z.B.: `set' könnte für alle Variblennamen completen. + history_expansion mit <Tab> (z.B. !$). + ist $bla das erste Wort eines Befehls, so sollte vor der completion die Variable ersetzt werden, um den completer herauszufinden. + den script completern den level mitgeben ? |
Modified tclreadline.c from [3dffb52a3c] to [26244269ef].
1 2 3 | 1 2 3 4 5 6 7 8 9 10 11 12 | - - + + | /* ================================================================== |
︙ | |||
32 33 34 35 36 37 38 39 40 41 42 43 44 45 | 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 | + + + + + + | #include <stdio.h> #include <stdlib.h> #include <string.h> #define READLINE_LIBRARY #include <readline.h> #include <history.h> /** * this prototype is missing * in readline.h */ void rl_extend_line_buffer(int len); #include "tclreadline.h" #define MALLOC(size) Tcl_Alloc((int) size) #define FREE(ptr) if (ptr) { Tcl_Free((char*) ptr); ptr = 0; } enum { _CMD_SET = (1 << 0), |
︙ | |||
61 62 63 64 65 66 67 | 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 | + - + + | */ char* stripleft(char* in); char* stripright(char* in); char* stripwhite(char* in); char* TclReadlineQuote(char* text, char* quotechars); int TclReadlineCmd(ClientData clientData, Tcl_Interp* interp, int argc, char** argv); int TclReadlineEventHook(void); |
︙ | |||
164 165 166 167 168 169 170 171 172 173 174 175 176 | 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 | + - + + + + + - + + + + + + + | length = strlen(argv[1]); if (c == 'r' && strncmp(argv[1], "read", length) == 0) { char* expansion = (char*) NULL; int status; #if 1 tclrl_line_complete = LINE_PENDING; tclrl_state = TCL_OK; rl_callback_handler_install(argc == 3 ? argv[2] : "%", TclReadlineLineCompleteHandler); Tcl_CreateFileHandler(0, TCL_READABLE, |
︙ | |||
304 305 306 307 308 309 310 311 | 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 | + + + + + + + + + + + + - + - + + + + + + - + + + + + + + + + + + + + + + + + | Tcl_AppendResult(interp, "wrong # args: should be \"readline option ?arg ...?\"", (char*) NULL); return TCL_ERROR; } int TclReadlineEventHook(void) { Tcl_DoOneEvent(TCL_ALL_EVENTS | TCL_DONT_WAIT); /* TCL_DONT_WAIT TCL_WINDOW_EVENTS TCL_FILE_EVENTS TCL_TIMER_EVENTS TCL_IDLE_EVENTS TCL_ALL_EVENTS */ } void |
︙ |
Modified tclreadlineSetup.tcl.in from [3f15d44e6e] to [29408eb47d].
1 | 1 2 3 4 5 6 7 8 9 10 | - - + + | #!/usr/locanl/bin/tclsh |
︙ | |||
1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 | 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 | + | locals - vars { if {"exists" == $cmd} { set do vars } else { set do $cmd } # puts stderr [list complete(info) level = [info level]] return \ [Format [uplevel 2 info ${do} "${mod}*"] $text] } } } return "" } |
︙ |