|
2006-04-23
| ||
| 05:48 | • Ticket [1116205fff] Add editline status still Open with 4 other changes artifact: 725ed8d22d user: msofer | |
| 05:34 | • Ticket [1116205fff]: 4 changes artifact: 7dfd2e35ba user: hobbs | |
|
2005-02-08
| ||
| 18:22 | • Ticket [1116205fff]: 4 changes artifact: 646580865b user: davidw | |
|
2005-02-05
| ||
| 09:09 | • Ticket [1116205fff]: 4 changes artifact: dfbcee24ed user: hobbs | |
|
2005-02-04
| ||
| 14:22 | • New ticket [1116205fff]. artifact: f0ea7bc736 user: davidw | |
Add editline
Open1116205fffffffffffffffffffffffffffffffffCreated 22 years agoUpdated 21 years ago
Descriptionplain2005-02-04 14:22:11
It would be a very noticeable change to a lot of people if tclsh had command line editing support. One way to get this would by using the 'editline' library which is released under a BSD style license. Here is a page outlining how to use it: http://www.cs.utah.edu/~bigler/code/libedit.html Support could be added a step at a time, initially obtained via a configure flag, and then gradually transitioned over to be the default. Perhaps I'll work on this myself if there is interest.
hobbsplain2005-02-05 09:09:00
Logged In: YES user_id=72656 I'd be interesting in adding this as a configure option at a minimum.
davidwplain2005-02-08 18:22:39
Logged In: YES
user_id=240
Update:
I have a basic editline framework functioning. I decided to
use a channel to take advantage of Tcl_Main, but that's not
set in stone.
I had a close look at the resources it uses:
libtcleditline0.1.so:
libedit.so.2 => /usr/lib/libedit.so.2 (0x6ff9c000)
libc.so.6 => /lib/libc.so.6 (0x6fe3d000)
libncurses.so.5 => /lib/libncurses.so.5 (0x6fdd4000)
/lib/ld.so.1 => /lib/ld.so.1 (0x08000000)
-rw-r--r-- 1 root root 132864 2004-08-31 01:30
/usr/lib/libedit.so.2.9
Personally, I don't think it would be unreasonable to
include that in Tcl. Actually, good ./configure logic could
make things work well:
1) --enable-editline - otherwise, forget it.
2) Check and see if there is a system editline. If so, use it.
3) Attempt to build editline locally.
hobbsplain2006-04-23 05:34:51
Logged In: YES user_id=72656 I was looking into this ... and unfortunately the reference page doesn't have the code anymore. Any ideas?
msoferplain2006-04-23 05:48:50
Logged In: YES user_id=148712 Google is your friend: http://softs.laas.fr/openrobots/libs/editline.php Remark also http://softs.laas.fr/openrobots/tools/eltclsh.php
Log in (anonymous is fine) to add a comment.