.Xr botch fix
[unix-history] / usr / src / usr.bin / window / wwwrite.c
index cde45fd..07ad342 100644 (file)
@@ -1,13 +1,17 @@
-#ifndef lint
-static char sccsid[] = "@(#)wwwrite.c  3.26 %G%";
-#endif
-
 /*
 /*
- * Copyright (c) 1983 Regents of the University of California,
- * All rights reserved.  Redistribution permitted subject to
- * the terms of the Berkeley Software License Agreement.
+ * Copyright (c) 1983 Regents of the University of California.
+ * All rights reserved.
+ *
+ * This code is derived from software contributed to Berkeley by
+ * Edward Wang at The University of California, Berkeley.
+ *
+ * %sccs.include.redist.c%
  */
 
  */
 
+#ifndef lint
+static char sccsid[] = "@(#)wwwrite.c  3.33 (Berkeley) %G%";
+#endif /* not lint */
+
 #include "ww.h"
 #include "tt.h"
 #include "char.h"
 #include "ww.h"
 #include "tt.h"
 #include "char.h"
@@ -69,7 +73,7 @@ int n;
                                        q = p + 10;
                                }
                                wwinschar(w, w->ww_cur.r, w->ww_cur.c,
                                        q = p + 10;
                                }
                                wwinschar(w, w->ww_cur.r, w->ww_cur.c,
-                                       *p++ | w->ww_modes << WWC_MSHIFT);
+                                       *p++, w->ww_modes);
                                goto right;
                        }
 
                                goto right;
                        }
 
@@ -216,10 +220,20 @@ int n;
                        case 'O':
                                w->ww_insert = 0;
                                break;
                        case 'O':
                                w->ww_insert = 0;
                                break;
+                       case 'P':
+                               wwinschar(w, w->ww_cur.r, w->ww_cur.c, ' ', 0);
+                               break;
+                       case 'X':
+                               wwupdate();
+                               break;
                        case 'Y':
                                UPDATE();
                                w->ww_wstate = 2;
                                break;
                        case 'Y':
                                UPDATE();
                                w->ww_wstate = 2;
                                break;
+                       case 'Z':
+                               wwupdate();
+                               xxflush(0);
+                               break;
                        case 's':
                                w->ww_wstate = 4;
                                break;
                        case 's':
                                w->ww_wstate = 4;
                                break;