diff options
author | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2019-02-24 11:41:44 +0000 |
---|---|---|
committer | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2019-02-24 11:41:44 +0000 |
commit | 2e9e3612e8406c463a9d21adf22399dce17f3b1d (patch) | |
tree | 350d1dec346ec9abf0fa0b0f08ba71bb264f6597 /app/xterm/Tekproc.c | |
parent | 375ab130e495e7442b44a55ec317e190f335dabf (diff) |
Update to xterm version 344. ok jsg@
Diffstat (limited to 'app/xterm/Tekproc.c')
-rw-r--r-- | app/xterm/Tekproc.c | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/app/xterm/Tekproc.c b/app/xterm/Tekproc.c index 138402306..b2627e99a 100644 --- a/app/xterm/Tekproc.c +++ b/app/xterm/Tekproc.c @@ -1,7 +1,7 @@ -/* $XTermId: Tekproc.c,v 1.228 2017/05/29 23:19:34 tom Exp $ */ +/* $XTermId: Tekproc.c,v 1.232 2018/06/25 20:14:43 tom Exp $ */ /* - * Copyright 2001-2016,2017 by Thomas E. Dickey + * Copyright 2001-2017,2018 by Thomas E. Dickey * * All Rights Reserved * @@ -29,7 +29,7 @@ * sale, use or other dealings in this Software without prior written * authorization. * - * Copyright 1988 The Open Group + * Copyright 1988 X Consortium * * Permission to use, copy, modify, distribute, and sell this software and its * documentation for any purpose is hereby granted without fee, provided that @@ -47,9 +47,9 @@ * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * - * Except as contained in this notice, the name of The Open Group shall not be + * Except as contained in this notice, the name of the X Consortium shall not be * used in advertising or otherwise to promote the sale, use or other dealings - * in this Software without prior written authorization from The Open Group. + * in this Software without prior written authorization from the X Consortium. * * Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts. * @@ -157,7 +157,7 @@ #define ScaledX(tw,x) (((x) * ScaleOf(tw)) + BorderOf(tw)) #define ScaledY(tw,y) ((BottomY(y) * ScaleOf(tw)) + BorderOf(tw)) -#define TekMove(tw,x,y) tekscr->cur_X = x; tekscr->cur_Y = y +#define TekMove(tw,x,y) do { tekscr->cur_X = x; tekscr->cur_Y = y; } while (0) #define input() Tinput(tw) #define unput(c) *Tpushback++ = (Char) c /* *INDENT-OFF* */ @@ -1958,6 +1958,18 @@ TCursorToggle(TekWidget tw, int toggle) /* TOGGLE or CLEAR */ } } +/* + * The Tektronix manual describes the PAGE/RESET button. For PAGE: + * Erases the display, resets to Alpha Mode and home position; + * resets to Margin 1 and cancels Bypass condition. + * For the RESET function: + * Entered with SHIFT held down; creates a "home" function, + * resetting the Terminal to initial status; does not erase. + * + * The reset done here is different, changing the modes (which changes + * the line-type and font to default values) as well as erasing the screen + * (like PAGE). + */ void TekSimulatePageButton(TekWidget tw, Bool reset) { |