:) It's true that what I want to do is odd.

Do you know vimperator? http://vimperator.mozdev.org/
It's a firefox extension written in javascript for browsing the web with the vim shortcuts. If you are a vim user, you will love it. Have a look at it, if you don't know, it's really great.

There is still a key feature missing in this extension, it's the ability to use vim to edit text in your browser. There have been hacky attempts to code the vim behaviour for text fields in javascript, but it is still buggy and not very enjoyable to use : for example, I think that would be great if you could use your .vimrc. You should also be able to execute external commands with ':!external_command'. And you cannot save files. That is why I believe being able to embed a terminal in place of text fields would be great, because it would allow you all those things, and much more : you could run ANY program from firefox, I find that quite exciting.

So at the moment, I am just asking if that could be possible to those who have already done a good job in embeding another application. I think it is a good way to start. I'm still reading the xembed specifiaction, and I don't know where to start yet, but hopefully, as soon as I'll feel ready, I'll start something.

Thanks for having answered to my questions, any remark is welcome.


On Fri, Jul 18, 2008 at 7:22 PM, Kevin DeKorte <kdekorte@gmail.com> wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Peter Marquardt wrote:
|
| Am 17.07.2008 um 17:00 schrieb Kevin DeKorte:
|> Peter,
|
|> Even with Xembed you can't do what you want to do. Your best option
|> would be to use a remote X term via ssh.
|
|> Here is what a plugin could do.
|
|> 1. You could specify a specific mimetype (application/x-term)
|> 2. put an embed tag on your web page like
|
|>      <embed mimetype='application/x-term' host='myhost.com' width=400
|> height=300>
|
|> 3. Write a plugin that handles the mimetype
|> 4. Have the plugin read the host variable and then open an ssh
|> connection to myhost.com
|> 5. The plugin would need to grab the window that is opened and
|> embed it
|> via Xembed into the browser window, or just leave it floating on your
|> desktop.
|
|> I think the mozilla sample plugin is much easier to follow in this
|> case.
|
|> But really a shell script would be easier to maintain and easier to
|> deploy.
|
|> Kevin
|
|
|
| Kevin,
|
| that's exactly what i had in mind... I still can't figure, why
| Christophe-Marie would want to do this.
| I only skimmed the xembed docs, but they sound enthusiastic about
| being able to embed nearly any applications output into nearly any
| other app, so i thought this might be possible.
|
| regards,
| Peter Marquardt

Another problem he may run into if he does this, is that firefox likes
to grab the keyboard and not give it to embedded applications. So that
might be a problem as well.

Kevin


- --
Get my public GnuPG key from
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x7D0BD5D1
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iEYEARECAAYFAkiA0VgACgkQ6w2kMH0L1dGMIQCfS5asw7nbS5WY//NnKQsJX8Ts
HrAAn22t2cUr0HGnepDBQFT7KBdCcczk
=DCPi
-----END PGP SIGNATURE-----

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Mplayerplug-in-devel mailing list
Mplayerplug-in-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mplayerplug-in-devel



--
Christophe-Marie Duquesne
élève ingénieur 2A ensimag