summaryrefslogtreecommitdiff
path: root/sys/src/cmd/plot/libplot/pprompt.c
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@gmx.de>2013-04-22 19:10:09 +0200
committercinap_lenrek <cinap_lenrek@gmx.de>2013-04-22 19:10:09 +0200
commit8ff7d518c60104f5d6aa033737d079f8f04f9ac0 (patch)
tree5e3ca81b3c33a106ed6a3191319e03a97d8ddb28 /sys/src/cmd/plot/libplot/pprompt.c
parent05d3cc414dbf9657a394738fd5b7cea36f08c8ca (diff)
- use the double-buffer buffer to allow redrawing on resize events.
specifing -d on the command line now only disables synchronous drawing events. - use threaded mouse and keyboard to allow for asynchronous receoption of quit messages. this allows plot to exit before drawing is completed. for programs like mapdemo, this is important. there were two things that needed to get fixed as a result - replace fprint(2, ...); exits("bad"); with sysfatal. also get rid of stdio. - dpoint needed a mach-dependentent (sic) version. otherwise points on a resized screen will not be properly placed.
Diffstat (limited to 'sys/src/cmd/plot/libplot/pprompt.c')
-rw-r--r--sys/src/cmd/plot/libplot/pprompt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/cmd/plot/libplot/pprompt.c b/sys/src/cmd/plot/libplot/pprompt.c
index 2678ead5f..1e730abf3 100644
--- a/sys/src/cmd/plot/libplot/pprompt.c
+++ b/sys/src/cmd/plot/libplot/pprompt.c
@@ -1,5 +1,5 @@
#include "mplot.h"
void
pprompt(void){
- fprintf(stderr, ":");
+ fprint(2, ":");
}