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



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

.



Relevant Pages

  • [SECURITY] [DSA-380-1] New xfree86 packages fix multiple vulnerabilities
    ... Four vulnerabilities have been discovered in XFree86. ... CAN-2003-0063 - xterm window title reporting escape sequence can deceive user ... Debian has resolved this problem by backporting an upstream fix ...
    (Bugtraq)
  • [Full-Disclosure] [SECURITY] [DSA-380-1] New xfree86 packages fix multiple vulnerabilities
    ... Four vulnerabilities have been discovered in XFree86. ... CAN-2003-0063 - xterm window title reporting escape sequence can deceive user ... Debian has resolved this problem by backporting an upstream fix ...
    (Full-Disclosure)
  • ssh and X11
    ... I have a problem opening an Xterm window on my Suse linux machine ... after I ssh to a remote machine. ... In fact I lose keyboard input capabilities in the window where I ...
    (comp.security.ssh)
  • Curses and resizing windows
    ... > I've been writing an application using curses, ... if running in xterm or similar. ... No matter how much I shrink the window, ... > derived from stdscr. ...
    (comp.lang.python)
  • X Window Color Problem with Fedora Core 2
    ... Recently I began having a problem with X Window and Fedora ... This fixes xterm, but not xscreensaver, and only until the next boot, ... I am not an X Window guru, nor a Linux guru, nor a Gnome guru. ...
    (Fedora)