Adrian, I would say to use Wt's server push capabilities to render updates to the screen, and to attach slots to the key signals. I would write it all in C++, and first do a version without custom JavaScript, which updates the entire viewable area on every update. There's a good chance that you will decide it is good enough. Lateron, you could provide some optimizations with custom JavaScript (e.g. provide functions to do scrolling, or update a single line on the client side). A separate thread can also interact with Wt widgets provided that it grabs the global update lock (see documentation of WApplication), so that part of your architecture is ok.
Best regards, Wim. 2009/5/5 Adrian Sutherland <[email protected]>: > Hello > > I am starting a mashup with C3270 to provide a web based 3270 emulator > based (I hope) on Witty. This is inspired by http://anyterm.org/ - the > demos are worth looking at. > > Does anyone have any thoughts on making a terminal widget. It needs to > display a screen full of text (with formatted colours) and capture key > strokes and update the screen. In fact 3270 have protected/unprotected > fields. Any screen changes from the host needs to be pushed to the > browser. > > What do you think my approach should be - custom JavaScript widget? > Also I am envisaging running each terminal backend in its own thread > and communicating via a shared block of memory. I don't want to break > witty's event loop etc. Comments? > > I'm just looking for any random thoughts people may have. > > Adrian > > ------------------------------------------------------------------------------ > The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your > production scanning environment may not be a perfect world - but thanks to > Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700 > Series Scanner you'll get full speed at 300 dpi even with all image > processing features enabled. http://p.sf.net/sfu/kodak-com > _______________________________________________ > witty-interest mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/witty-interest > ------------------------------------------------------------------------------ The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your production scanning environment may not be a perfect world - but thanks to Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700 Series Scanner you'll get full speed at 300 dpi even with all image processing features enabled. http://p.sf.net/sfu/kodak-com _______________________________________________ witty-interest mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/witty-interest
