Re: [Dps-devel] Building with XFree86 4.0.2?
Status: Inactive
Brought to you by:
jch
From: Kevin B. <Co...@co...> - 2001-01-09 03:48:45
|
Juliusz Chroboczek wrote: > > KB> That works fine. > > Then I've got no idea what's going wrong. The ``Hello'' message does > appear, right? > Yes, fonts seem to draw correctly. > You may try uncommenting lines 274 and 275 in texteroids.c. > No difference. I built texteroids with debug, and it's hanging up in the pswrap for GetInvCTM() in libc in a select() call. > KB> What do all the flush's do? Are they required to see any errors > KB> during dpsexec? > > Not errors, only standard output. > > KB> I noticed dpsexec only seems to print a prompt in some situations, > KB> not after every 'Enter'. > > In DPS, context output is buffered. The executive (the thing you > interact with in dpsexec) works by flushing output before printing > every prompt. The reason that works is that the executive does not > interact with standard input, but with terminal input which gives it a > chance to print a prompt once in a while. Hmm, I'm a little lost here. So... DPS passes the Postscripts tokens to the interpreter immediately, right? And executes them? But any response output from the interpreter may not appear until a flush? Or are you saying that Postscripts tokens aren't passed to the interpreter by DPS until a flush? (Which doesn't match the behavior I'm seeing... But then again, I'm used to talking Postscript directly to a printer, which doesn't do anything with tokens until you end a line or use some other action which tells the interpreter to exec.) > > I have not (yet?) implemented terminal input, but instead have made it > an alias for terminal input. So you need to type either ``flush'' or > ``prompt'' once in a while to get the output flushed. > > KB> But when I enter something that causes a stackunderflow or > KB> nocurrentpoint error it prints the error and a prompt immediately. > > The error handler runs a new instance of the executive which starts by > calling ``prompt'' which in turn calls ``flush''. > > Juliusz |