Overview
Comment: | share/vim/ft/c_ft.vim share/vim/ft/cpp_ft.vim src/tclreadline/configure.in src/tclreadline/tclreadline.n.in src/tclreadline/tclreadlineSetup.tcl.in Added Files: src/tclreadline/Makefile.in src/tclreadline/tclreadline.c src/tclreadline/tclreadlineConfig.sh.in src/tclreadline/tclreadlineInit.tcl.in |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
d6ac1c38a333bad6fc6a81bda547805a |
User & Date: | johannes@zellner.org on 1999-08-20 22:43:28 |
Other Links: | manifest | tags |
Context
1999-08-21
| ||
16:16 | Modified Files: share/vim/VIM/vimrc share/vim/functions/selectBuffer.vim Added Files: src/tclreadline/Makefile.in src/tclreadline/tclreadline.c src/tclreadline/tclreadlineConfig.sh.in src/tclreadline/tclreadlineInit.tcl.in check-in: 1d9d3e3f9c user: johannes@zellner.org tags: trunk | |
1999-08-20
| ||
22:43 | share/vim/ft/c_ft.vim share/vim/ft/cpp_ft.vim src/tclreadline/configure.in src/tclreadline/tclreadline.n.in src/tclreadline/tclreadlineSetup.tcl.in Added Files: src/tclreadline/Makefile.in src/tclreadline/tclreadline.c src/tclreadline/tclreadlineConfig.sh.in src/tclreadline/tclreadlineInit.tcl.in check-in: d6ac1c38a3 user: johannes@zellner.org tags: trunk | |
16:55 | .tclshrc pkgMkIndex vimrc Makefile.in tclreadline.c check-in: 199260e23f user: johannes@zellner.org tags: trunk | |
Changes
Modified Makefile.in from [b22049b06e] to [52fb3dea44].
1 | 1 2 3 4 5 6 7 8 9 10 | - - + + | # -*- make -*- |
︙ | |||
176 177 178 179 180 181 182 183 184 185 186 187 188 189 | 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 | + - + | aux/config.guess \ aux/config.sub \ aux/install-sh \ aux/mkinstalldirs \ aux/vimtags MAN = tclreadline.n HTML = tclreadline.n.html CIFLAGS = -f -t-"gnu readline for tcl" -m"before initial relase" .PHONY: clean distclean ctags tcltags vimtags tags ci co .SUFFIXES: .c .o .so .sl .tcl |
︙ | |||
216 217 218 219 220 221 222 | 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 | - - + + | $(INSTALL_DATA) tclreadlineConfig.sh $(LIBRARY_INSTALL_DIR) FORCE: $(MANN_INSTALL_DIR)/$(MAN): FORCE - $(INSTALL_DATA) $(srcdir)/$(MAN) $@ && chmod 644 $@ |
︙ | |||
262 263 264 265 266 267 268 | 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 | - + - + | ci: $(SOURCES) ci -u $(CIFLAGS) $^ co: $(SOURCES) co -l $^ |
Modified configure.in from [8b6b93a489] to [5469ed1d1f].
1 | 1 2 3 4 5 6 7 8 9 10 | - - + + | # -*- autoconf -*- |
︙ | |||
108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 | 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 | + - + | # ----------------------------------------------------------------------- # Set up a new default --prefix. # ----------------------------------------------------------------------- # this is the default anyway: # AC_PREFIX_DEFAULT(/usr/local) if test "${prefix}" = "NONE"; then prefix=$TCL_PREFIX fi if test "${exec_prefix}" = "NONE"; then exec_prefix=$TCL_EXEC_PREFIX else TCLREADLINE_PACKAGE_PATH=${exec_prefix}/lib fi |
︙ |
Modified tclreadline.c from [4a41886173] to [1a4acfc94a].
1 2 3 | 1 2 3 4 5 6 7 8 9 10 11 12 | - - + + | /* ================================================================== |
︙ | |||
212 213 214 215 216 217 218 | 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 | - + | (char *) NULL); return TCL_ERROR; } void TclReadlineDataAvailableHandler (ClientData clientData, int mask) { |
︙ |
Modified tclreadline.n.in from [09c544295b] to [7b31b0a3f2].
1 2 3 | 1 2 3 4 5 6 7 8 9 10 11 12 | - - + + | .TH tclreadline n "@TCLREADLINE_VERSION@" "Johannes Zellner" .\" (C) 1999 by Johannes Zellner |
︙ | |||
127 128 129 130 131 132 133 134 135 136 137 138 139 140 | 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 | + + + + + + + + + + + + + + + + + + + + + + + + + | arguments, it just returns the current setting. .TP 5 \fB::tclreadline::Loop\fP enter the tclreadline main loop. This command is typically called from the startup resource file (something .tclshrc, depending on the interpreter you use). \fB::tclreadline::Loop\fP will normally not return. .TP 5 \fB::tclreadline::prompt1\fP a proc which is called by ::tclreadline::Loop and returns a string which will be displayed as the primary prompt. This prompt will be something like "[info nameofexecutable] \[[pwd]\]" possibly fancy colored. The default proc is defined on entering the ::tclreadline::Loop, if it is not already defined. So: If you define your own proc ::tclreadline::prompt1 before entering ::tclreadline::Loop, this proc is called each time the prompt is to be displayed. Example: .EQ package require tclreadline namespace eval tclreadline { proc prompt1 {} { return "[clock format [clock seconds]]> " } } ::tclreadline::Loop .EN Note that non-printable control characters as color control characters must be enclosed in literal ctrl-a / ctrl-b to tell readline the length of the printable prompt. See for example the variable `prompt_string' in the file tclreadlineSetup.tcl in your tclreadline installation directory. .\".SH "EXAMPLES" .\".SH "ENVIRONMENT VARIABLES" .SH VARIABLES |
︙ | |||
171 172 173 174 175 176 177 | 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 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 | - + - + - + + | The `global' readline settings there will be valid also for \fBtclreadline\fP. Additionally the .inputrc might hold conditional settings for the implementation name \fBtclreadline\fP. Example of some lines in your .inputrc: .EQ $if tclreadline |
Modified tclreadlineSetup.tcl.in from [5442833e91] to [8545e21571].
1 | 1 2 3 4 5 6 7 8 9 10 | - - + + | #!/usr/local/bin/tclsh |
︙ | |||
42 43 44 45 46 47 48 | 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 | - + - + - + | set savedErrorInfo $errorInfo set name [lindex $args 0] if ![info exists auto_noload] { # # Make sure we're not trying to load the same proc twice. # if [info exists unknown_pending($name)] { |
︙ | |||
162 163 164 165 166 167 168 | 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 | + - - - - - - + + + + + + - - - - + + + + + | set prompt_string "\[0;94m$base$tk_version\[0m" } else { set prompt_string "\[0;91m$base\[0m" } } if {"" == [info procs ::tclreadline::prompt1]} { |
︙ | |||
289 290 291 292 293 294 295 | 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 | - + | set ::tclreadline::LINE [::tclreadline::readline read \ [::tclreadline::prompt1]] } else { set ::tclreadline::LINE [::tclreadline::readline read %] } while {![::tclreadline::readline complete $::tclreadline::LINE]} { |
︙ |