* Copyright (c) 1992 The Regents of the University of California.
* %sccs.include.redist.c%
static char copyright
[] =
"@(#) Copyright (c) 1992 The Regents of the University of California.\n\
static char sccsid
[] = "@(#)tscroll.c 5.1 (Berkeley) %G%";
* Routine to perform scrolling. Derived from tgoto.c in tercamp(3) library.
* Cap is a string containing printf type escapes to allow
* The following escapes are defined for substituting n:
* %. gives %c hacking special case characters
* %+x like %c but adding x first
* The codes below affect the state but don't use up a value.
* %>xy if value > x add y
* %B BCD (2 decimal digits encoded in one byte)
* %D Delta Data (backwards bcd)
* all other characters are ``self-inserting''.
static char result
[MAXRETURNSIZE
];
* ``We don't do that under BOZO's big top''
n
= (n
/ 10 << 4) + n
% 10;