Andrew Lentvorski wrote:
> 
> So here's the task:
> 
> The goal is an email window.  It has a Entry widget which holds the To: 
> address.  It has a container widget which holds the vi instance.
> 
> How do I select the address in the Entry widget and insert it into the 
> vi instance?
> 
> Actual steps please.

I am going to guess that the correct answer of using the X11 method of
selecting the text in the To: widget and pasting it into the ``body''
window vi editor instance is not going to be acceptable.

(Do I really need to say to place the cursor slightly before
the first character of actual To: address, press the primary mouse
button, drag the cursor to the last character ensuring that all
desired characters are displayed in reverse video. When the last desired
character is highlighted, release the primary mouse button. The selected
text is now in the cut buffer. Activate the ``body'' window (vi editor).
[[Implementation detail HIGHLY dependent upon the actual application.
Perhaps it is as simple as moving the cursor over the body window/
widget]] Place the vi cursor at the desired insertion points [[normal vi
movement commands]]. Ensure vi is in insert mode. Press the tertiary
mouse botton. You are done.)

> The key question: How do we identify what the character encoding is for 
> the Entry widget and for the vi instance and how do we harmonize the two?

Assuming the vi widget is actually an xterm with Fancy Wrapping: set the
font as required when creating the vi widget to begin with, and the
proper LANG and all that. IOW: it is done when the ``body'' window is
instantiated.

-john

Mutt and Lynx both allow me to use the editor of my choice.


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

Reply via email to