> Unfortunately, echon.c doesn't solve the problem either, because it
> doesn't output a trailing newline.  The crux of the problem is how to
> output "-n" on a line by itself, followed by a newline.  I don't think

if you give me 2^n pennies for the nth way i can think of doing this,
i'm gonna be loaded

0.      awk 'BEGIN{print "-n"; exit}'
1.      echo x -n | sed 's/^ //'
2.      echo print "-n\n" | hoc
3.      echo '"-n
        "' | bc
4.      unicode 2d 6e | tr -d '\012' ; echo
5.      echo '' -n | tr -d ' '
6.      '-n' = 1; whatis -n | sed 's/=.*//' 

> I'm trying to write an Acme client in rc(1).  I'd like to avoid spawning
> a new read(1) process every time I make a keystroke or click the mouse.
> Using multi-line reads wouldn't help much, because interactivity needs
> to be maintained.

i don't know what your application is, you don't need to get
every mouseclick.  see the Mail client.

- erik

Reply via email to