This is not necessarily the current version of this TIP.
| TIP: | 10000 |
| Title: | Dummy Proposal for Testing Editing Interfaces |
| Version: | $Revision: 1.120 $ |
| Authors: |
Don Porter <dgp at users dot sourceforge dot net> nobody at nowhere dot com Andreas Kupries <akupries at westend dot com> Donal K. Fellows <fellowsd at cs dot man dot ac dot uk> Andreas Kupries <a dot kupries at westend dot com> dgp at user dot sourceforge dot net Richard Suchenwirth <richard dot suchenwirth at kst dot siemens dot de> Kevin B KENNY <kennykb at acm dot org> Jeff Hobbs <hobbs at users dot sourceforge dot net> Test User <test at example dot com> New User <newbie at example dot com> Working User <thisworks at example dot com> Vince Darley <vincentdarley at users dot sourceforge dot net> Fabrice Pardo <Fabrice dot Pardo at l2m dot cnrs dot fr> Don Porter <dgp at users dot sf dot net> Donal K. Fellows <donal dot k dot fellows at man dot ac dot uk> Joe Mistachkin <joe at mistachkin dot com> |
| State: | Draft |
| Type: | Informative |
| Vote: | Pending |
| Created: | Sunday, 03 December 2000 |
This proposal has no content. It exists only to provide a document on which testing of and practice using of the TIP editing interfaces can take place.
This document serves a purpose similar to the Graffiti page (http://purl.org/thecliff/tcl/wiki/34.html) at the Tcl'ers Wiki [1].
It will also be useful for testing the web editing interface proposed in TIP #13.
Here's a simple edit test.
Test of italic, bold and mixed 'bold and italic' text.
foobar
spong wibble
depth test
foo bar spong
some more test stuff
This TIP proposes a new command ftruncate for truncating open files.
In Tcl, there is currently no way to truncate a file while it is open even though all modern operating systems support such an operation. The current workaround is to close the file and reopen it. In cases where the file must be held open this workaround cannot be used.
ftruncate channelId ?length?
For example:
# Open the file for reading and writing...
set file [open "test.txt" {RDWR}]
# Write some data to the file...
puts $file "test data"
# Some time later...
...
ftruncate $file
...
# We are done, close the file...
close $file
A reference implementation does not yet exist.
This document has been placed in the public domain.
Public domain
This is not necessarily the current version of this TIP.