An interactive line oriented wish (tcl/tk) interpreter
Project description
iwish interactive wish (tcl/tk interpreter)
iwish is a script that gives interactive features to wish like navigating with arrows backward search ... history files (all that readline can offer).
Due to my limitations, however, input are line based and eval in tcl before being interpreted.
It is made for tinkering with tcl/tk to test something fast with the help of an interactive shell.
A typical session looks like this
# pack [ button .c -text that -command { puts "hello" } ]
#
tcl output> hello # here we pressed the button "that"
tcl output> hello # here we pressed the button "that"
# set name 32
# puts $name
tcl output> 32
# #?
#l print current recorded session
#? print current help
#! calls python code like
#!save(name="temp") which saves the current session in current dir in "temp" file
bye exit quit quit the current session
# #l
pack [ button .c -text that -command { puts "hello" } ]
set name 32
puts $name
# #!save("my_test.tcl")
# quit
special words
quit bye exit
These bare keywords exit the shell
#l
This shortcut list the current session
#?
This shortcut call the inline help
Evaluating python
#!...
... being a python command will be evaled in current content
#!save(fn="temp")
Calls the save
function which saves the current session in file given as an
argument or "temp" in the current directory by default.
#!load(fn="temp")
Loads a tcl file and evaluate it LINE BY LINE (which may break valid multiline tcl code).
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file iwish-0.1.4.tar.gz
.
File metadata
- Download URL: iwish-0.1.4.tar.gz
- Upload date:
- Size: 6.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b10cba84eee87d1c0b0ebd283eb1a611059fa0c4215d43cf589d25ab1e7bbf10 |
|
MD5 | a5d0ffa4c153b6a713b1264e65d25165 |
|
BLAKE2b-256 | 873a24c4f80d3bce5a65348be5813fa96d1fa32bc8d870a0613b1b9a42cbd084 |
File details
Details for the file iwish-0.1.4-py3-none-any.whl
.
File metadata
- Download URL: iwish-0.1.4-py3-none-any.whl
- Upload date:
- Size: 9.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3852c9ccf58c9ac2f9b0018d99c29e3a02164e097c565e09fce51063100d9da5 |
|
MD5 | d06880a0813e63e4e648d10b68c632cf |
|
BLAKE2b-256 | d439c0317afaa3d2ff1caba8fd62d1ddce519c763a25060b1dc3a1d6fde6b43b |