projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add define for Kirk Smith's USR Courier driver. Change default baud
[unix-history]
/
usr
/
src
/
usr.bin
/
window
/
cmd5.c
diff --git
a/usr/src/usr.bin/window/cmd5.c
b/usr/src/usr.bin/window/cmd5.c
index
2169b93
..
23fb50e
100644
(file)
--- a/
usr/src/usr.bin/window/cmd5.c
+++ b/
usr/src/usr.bin/window/cmd5.c
@@
-1,7
+1,13
@@
#ifndef lint
#ifndef lint
-static char
*sccsid = "@(#)cmd5.c 3.10 84/03/03
";
+static char
sccsid[] = "@(#)cmd5.c 3.14 %G%
";
#endif
#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.
+ */
+
#include "defs.h"
/*
#include "defs.h"
/*
@@
-16,6
+22,8
@@
register struct ww *w;
int maxcol, maxrow;
int curcol, currow;
int maxcol, maxrow;
int curcol, currow;
+ if (!terse)
+ wwputs("New window position: ", cmdwin);
col = w->ww_w.l;
row = w->ww_w.t;
wwadd(boxwin, framewin->ww_back);
col = w->ww_w.l;
row = w->ww_w.t;
wwadd(boxwin, framewin->ww_back);
@@
-45,7
+53,7
@@
register struct ww *w;
}
wwdelete(boxwin);
if (!terse)
}
wwdelete(boxwin);
if (!terse)
- wwput
s("\r\n"
, cmdwin);
+ wwput
c('\n'
, cmdwin);
wwcurtowin(cmdwin);
movewin(w, row, col);
}
wwcurtowin(cmdwin);
movewin(w, row, col);
}
@@
-55,8
+63,8
@@
register struct ww *w;
{
struct ww *back = w->ww_back;
{
struct ww *back = w->ww_back;
- w->ww_alt
pos.r
= w->ww_w.t;
- w->ww_alt
pos.c
= w->ww_w.l;
+ w->ww_alt
.t
= w->ww_w.t;
+ w->ww_alt
.l
= w->ww_w.l;
wwdelete(w);
wwmove(w, row, col);
wwadd(w, back);
wwdelete(w);
wwmove(w, row, col);
wwadd(w, back);