Re: A widget for the user's editor of choice



Jan Kandziora wrote:
package require Tk
frame .f -container yes
pack .f -fill both -expand yes
exec xterm -into [ winfo id .f ] -e $env(EDITOR) &

However, the xterm is not reparented into the frame on my machine.
Does anyone know what I left out?

The problem seems to be that [winfo id .f] returns a hex number
(something like 0x3e00005). The xterm man page indicates that it
wants a decimal number.

This works:
exec xterm -into [expr {[winfo id .f]}] -e $env(EDITOR) &


Schelte.
--
set Reply-To [string map {nospam schelte} $header(From)]
.



Relevant Pages