begin  quoting Tracy R Reed as of Sat, Jun 30, 2007 at 08:49:54AM -0700:
[snip]
> I wasn't really referring to the text editors themselves when I asked if 
> this stuff was badly designed. I was more referring to the widget system 
> and our other software like web browsers and email programs that will 
> not simply let you embed an xterm like widget with a text app such as 
> emacs or vi running inside of it. Emacs and vi themselves shouldn't even 
> have to know that they are running inside such an app and should not 
> need any code changes to implement what I have in mind.

You want a "terminal" widget, yes? Something that might look like:

X_Terminal x = X_Create_Terminal( 80, 25, "vt100" );
X_Terminal_Set_Background( x, "black" );
X_Terminal_Set_Foreground( x, "white" );
X_Terminal_Set_Hilight( x, "cyan" );
X_Terminal_Set_Cursor( x, CURSOR_BLOCK, "yellow" );
if ( fork() == 0 ) {
   dup2( stdin, X_Terminal_Get_Stdin( x ) );
   dup2( stdout, X_Terminal_Get_Stdout( x ) );
   dup2( stderr, X_Terminal_Get_Stderr( x ) );
   exec( get_env( "EDITOR" ), "/tmp/V0M1TH3X" );
}

-- 
Naturally, in our favorite languages, it would be prettier.
Stewart Stremler


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

Reply via email to