Hi again, I built a sample xul from vt100.js
here is code: <?xml version="1.0"?> <?xml-stylesheet href="chrome://global/skin/" type="text/css"?> <window id="yourwindow" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" onload=" _term_box_element = document.getElementById('term_box'); _term = new VT100(80, 24, 'term'); _term.curs_set(true, true, _term_box_element); _term.noecho(); _term.write('some text') "> <script type="text/javascript"> var _term_box_element = null; var _term = null; </script> <script type="text/javascript" src="file:///..../vt100.js"/> <vbox flex="1"> <hbox id="term_box" flex="1" style="-moz-user-focus: normal;"> <pre id="term" flex="1" style="margin: 0 0 0 0; padding: 0 0 0 0; border: medium double rgb(250,0,255)" /> </hbox> </vbox> <label value="Put your= XUL here!" onclick=" _term.write('some text 2')"/> </window> It doesn't work (some text must show)! can you help to fix it ? On 11/28/08, joe ertaba <[EMAIL PROTECTED]> wrote: > Hi Todd > > Thanks for response > > Yes, I want to send xterm emulation, like VT100 to a component which > can phrase them and show them correctly > > I can receive data and control codes correctly but I don't know how to > phrase them and which element I should use for that > > > On 11/28/08, Todd Whiteman <[EMAIL PROTECTED]> wrote: >> joe ertaba wrote: >>> Is it possible to use xmlterm in extensions ? is it multi-platform ? >>> >>> What I want is to send data to some interface[original data with all >>> control codes,...] (maybe xmlterm) to show them correctly >> >> What control codes are you wanting to send, xterm emulation, like VT100, >> ansi color? >> >> May be related: I've recently setup a VT100 terminal emulation extension >> for Mozilla, to connect to a remote server using SSH, and handle the >> VT100 specific control codes: >> http://pyxpcomext.mozdev.org/samples.html#sftp_and_ssh_protocol >> >> Cheers, >> Todd >> _______________________________________________ >> Project_owners mailing list >> [email protected] >> https://www.mozdev.org/mailman/listinfo/project_owners >> > _______________________________________________ Project_owners mailing list [email protected] https://www.mozdev.org/mailman/listinfo/project_owners
