RE: Al Getz Display Server
- Posted by Al Getz <Xaxo at aol.com> Jul 27, 2003
- 525 views
Juergen Luethje wrote: > > > Hello Al, you wrote: > > <snip> > > > This is a very simple but VERY handy program, but > > if any other problems come up, feel free to let me know > > about them. > > I like the idea in general, and I like your program. Nevertheless, > *for me* it has ATM no practical advantage over the console window. > > For my needs, the most important improvement would be, to make the text > inside the window scrollable, so that your server can show much more > lines than currently (say 500 -- but I think, Windows allows even more). > > Secondly, displaying the text in a non-proportional font (such as > "Courier New") is IMHO more versatile, than using a proportional font. > In a non-proportional font, also tables and ASCII art will be shown > correctly. Just try > include connect.ew > ServerPrint(" |\\ _,,,---,,_") > ServerPrint(" /,`.-'`' -. ;-;;,_") > ServerPrint(" |,4- ) )-,_..;\\ ( `'-'") > ServerPrint("'---''(_/--' `-'\\_)") > > and see, what currently happens to the kitty. > An advanced option also could be, that the user can choose a font. > > *If* your DisplayServer should act as replacement for the console > window, > IMHO it should show the output of an Eu program in a similar way, > especially > - don't start with a new line after each call > - interpret the "\n" as "newline" character. > > Also a button for clearing the window would be useful. > You see, there is always room for improvement. > > Best regards, > Juergen > > -- > Math problems? Call 1-800-[(10x)(13i)^2]-[sin(xy)/2.362x]. > Hello again Juergen, The practical advantage of something isnt always noticed at first. Sometimes you have to use it a few times to see the difference. In particular, when you are debugging and you wish to see variables over and over as you are doing something else in your program, the console window gets slower sometimes causing a delay in returning to the exw program. This is a real pain when trying to debug. On the other hand, after printing to the server it returns control to the calling program very fast, so your program doesnt get interrupted. The is especially true when trying to print data returned to a Windows callback function. To see the difference, try printing values passed to a window procedure with the console, then with the server. The difference is quite noticable. The server doesnt make the program skip a beat, while the console sometimes delays the calling program by a second or two. Also, there's no reason why this program cant be updated to allow changing fonts and format printing and stuff like that. I already had ideas for multiple fonts and coloration. If this turns out to be something anyone would like to see in this just let me know. Take care for now, Al