On Fri, June 29, 2007 6:47 pm, Andrew Lentvorski wrote:
> Lan Barnes wrote:
>
>> Thought you might enjoy a Tcl solution:
>>
>> #!/usr/bin/tclsh
>> package require Tk
>> frame .f -container yes
>> pack .f -fill both -expand yes
>> exec xterm -into [expr [ winfo id .f ]] -e $env(EDITOR) &
>>
>> When you run it, the editor window might be tiny and need to be dragged
>> open ... but that's an implementation detail.
>
> Bingo.  And there are a *ton* of these "implementation details".

A "ton"? Pass it a file name to open; edit it; save it from vi; close the
widget; do something with it. A "ton"?

> And
> they all differ depending upon your windowing widgets.
>

Huh? "frame .f -container ..." Wow, what a gamut of windowing widgets that
comprises!

Why all the hand wringing?

> Thanks for the concrete demonstration of what makes integrating an
> editor such a PITA.
>

Looks pretty simple to me. Four lines. Perhaps your PITA threshold is
lower than mine.

-- 
Lan Barnes

SCM Analyst              Linux Guy
Tcl/Tk Enthusiast        Biodiesel Brewer


-- 
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list

Reply via email to