Output and return to console on next line

Started by HPW, May 02, 2004, 12:43:22 AM

Previous topic - Next topic

HPW

I am not sure what can be done to reach this. Is it possible by

modifying the TK front end or does it need a new function in newLISP.



So when I do this:

> (silent(print "Test"))
Test_

The cursor (_) stay behind Test and does not return to the prompt.

When I hit on enter again it shows:

> (silent(print "Test"))
Test

> _


What I want, is a silent with return to prompt:

> (silentret(begin(DoMyProc)(print "Done")))
Done
> _


For what can it be used. I want to make my own app with a console window

with a small height (only a few lines) at the bottom of the screen.

The user should be able to type in a command and get a feedback

on the line above of the prompt-line.



Possible?
Hans-Peter

Sammo

#1
Hi Hans-Peter,



You could fake it!


> (define (resume) (print "rn> "))
> (define (myfunction) "this is myfunction's return value")
> (silent (myfunction) (print "Done") (resume))
Done
>

HPW

#2
Hi Sam,



Excellent and creative idea!

You always get the maximum out of our tools!

Thanks a lot.
Hans-Peter