Re: A widget for the user's editor of choice
- From: skuhagen@xxxxxx
- Date: Fri, 29 Jun 2007 06:08:24 -0700
Larry W. Virden wrote:
Looks like the xterm that Sun uses doesn't support -into.
It only depends on the version of the XServer, that is used. If you
use the current versions of Xorg on your Solaris-machine, then your
xterm also knows "-into", because xterm is part of X11.
The reason, why the OPs example does not work is explained in the man-
page of xterm:
"-into windowId
Given an X window identifier (a decimal integer),
xterm will reparent its top-level shell widget to that window. This
is
used to embed xterm within other applications."
It says, that the WindoID must be a decimal integer string, but [winfo
id .f] returns a hex-string. Changing the line to
exec xterm -into [expr [winfo id .f]] -e $env(EDITOR) &
solves the problem, since [expr] returns a decimal string.
HTH, regards
Stephan
.
- References:
- A widget for the user's editor of choice
- From: Lan
- Re: A widget for the user's editor of choice
- From: Jan Kandziora
- Re: A widget for the user's editor of choice
- From: Larry W. Virden
- A widget for the user's editor of choice
- Prev by Date: Re: A widget for the user's editor of choice
- Next by Date: Re: A widget for the user's editor of choice
- Previous by thread: Re: A widget for the user's editor of choice
- Next by thread: Re: A widget for the user's editor of choice
- Index(es):
Relevant Pages
|