home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Usenet 1994 January
/
usenetsourcesnewsgroupsinfomagicjanuary1994.iso
/
sources
/
misc
/
volume35
/
xvi
/
patch01c
< prev
next >
Wrap
Text File
|
1993-03-02
|
39KB
|
3,095 lines
Newsgroups: comp.sources.misc
From: jmd@cyclone.bt.co.uk (John Downey)
Subject: v35i100: xvi - portable multi-window vi-like editor, Patch01c/7
Message-ID: <1993Feb23.183321.13390@sparky.imd.sterling.com>
X-Md4-Signature: c89b17ea302a80240eabc4151de63001
Date: Tue, 23 Feb 1993 18:33:21 GMT
Approved: kent@sparky.imd.sterling.com
Submitted-by: jmd@cyclone.bt.co.uk (John Downey)
Posting-number: Volume 35, Issue 100
Archive-name: xvi/patch01c
Environment: Unix, MS-DOS, OS/2, QNX
Patch-To: xvi: Volume 33, Issue 10-27
#! /bin/sh
# This is a shell archive. Remove anything before this line, then unpack
# it by saving it into a file and typing "sh file". To overwrite existing
# files, type "sh file -c". You can also feed this as standard input via
# unshar, or by typing "sh <file", e.g.. If this archive is complete, you
# will see the following message at the end:
# "End of archive 3 (of 7)."
# Contents: doc/source.ps2
# Wrapped by jmd@bealfeirste on Mon Feb 8 19:57:07 1993
PATH=/bin:/usr/bin:/usr/ucb ; export PATH
if test -f 'doc/source.ps2' -a "${1}" != "-c" ; then
echo shar: Will not clobber existing file \"'doc/source.ps2'\"
else
echo shar: Extracting \"'doc/source.ps2'\" \(33814 characters\)
sed "s/^X//" >'doc/source.ps2' <<'END_OF_FILE'
X2991 4707(2)U
X432(Page)S
X589(6)S
X2453(25th)S
X2592(September)S
X2892(199)S
XEP
X%%Page: ? 7
XBP
X2 F
X66 Z
X432 366(X)U
X(vi)R
X541(Source)S
X746(Code)S
X907(Notes)S
X2991(7)S
X3 F
X432 558(char)U
X582(*tempfname\(const)S
X1125(char)S
X1275(*\256lename\))S
X1 F
X648 636(Create)U
X843(a)S
X896(unique)S
X1099(name)S
X1265(for)S
X1366(a)S
X1419(temporary)S
X1713(\256le,)S
X1838(possibly)S
X2082(using)S
X3 F
X2249(\256lename)S
X1 F
X2511(as)S
X2590(a)S
X2642(base)S
X2782(\(this)S
X2922(will)S
X648 792(s)U
X648 714(be)U
X734(used)S
X878(by)S
X3 F
X967(do)S
X5 F
X(_)R
X3 F
X(preserve\(\))R
X1 F
X1378(to)S
X1452(create)S
X1631(a)S
X1683(backup)S
X1896(\256le)S
X2003(for)S
X2103(the)S
X2206(\256le)S
X2313(named)S
X2511(by)S
X3 F
X2600(\256lename)S
X1 F
X(\).)R
X2922(The)S
X674 792(tring)U
X832(returned)S
X1085(must)S
X1247(have)S
X1405(been)S
X1563(allocate)S
X1766(d)S
X1833(using)S
X3 F
X2010(malloc\(\))S
X1 F
X(;)R
X3 F
X2292(NULL)S
X1 F
X2510(can)S
X2635(be)S
X2731(returned)S
X2984(if)S
X3 F
X432 969(i)U
X1 F
X648 870(there)U
X801(is)S
X867(no)S
X955(more)S
X1112(memory)S
X1353(available)S
X1589(.)S
X3 F
X450 969(nt)U
X531(call)S
X5 F
X(_)R
X3 F
X(system\(char)R
X1025(*command\))S
X1 F
X648 1047(I)U
X(nvoke)R
X854(the)S
X957(given)S
X1126(command)S
X1408(in)S
X1482(a)S
X1534(subshell.)S
X1811(This)S
X1950(is)S
X2016(used)S
X2159(for)S
X2258(shell)S
X2404(escapes)S
X2627(from)S
X3 F
X2777(xvi)S
X1 F
X(.)R
X2922(The)S
X2995 1125(a)U
X648 1203(c)U
X648 1125(command)U
X935(string)S
X1113(may)S
X1254(contain)S
X1475(metachara)S
X1744(cters)S
X1896(which)S
X2085(are)S
X2193(expected)S
X2454(to)S
X2533(be)S
X2623(expanded)S
X2902(by)S
X677 1203(ommand)U
X933(interpreter,)S
X1249(e.g.)S
X3 F
X1564(/bin/sh)S
X1 F
X(,)R
X1798(MS-DOS)S
X3 F
X2074(command.com)S
X1 F
X(.)R
X2551(Return)S
X2755(value)S
X2922(is)S
X2991(0)S
X648 1281(f)U
X60 Z
X1389 1203(UNIX)U
X66 Z
X670 1281(or)U
X787(success.)S
X1086(In)S
X1203(many)S
X1411(environments,)S
X1847(this)S
X2003(call)S
X2158(may)S
X2332(safely)S
X2550(be)S
X4 F
X2673(#)S
X3 F
X(de\256ne)R
X1 F
X(d)R
X2969(as)S
X3 F
X432 1458(i)U
X648 1359(system\(command\))U
X1 F
X(.)R
X3 F
X450 1458(nt)U
X531(call)S
X5 F
X(_)R
X3 F
X(shell\(char)R
X962(*shell\))S
X1 F
X648 1536(I)U
X(nvoke)R
X856(the)S
X961(named)S
X1161(shell.)S
X1348(This)S
X1489(is)S
X1557(used)S
X1702(for)S
X1803(the)S
X3 F
X1907(:shell)S
X1 F
X2081(command.)S
X2403(It)S
X2467(may)S
X2604(be)S
X2690(mapped)S
X2922(into)S
X2991 1614(g)U
X648 1692(t)U
X3 F
X648 1614(call)U
X5 F
X(_)R
X3 F
X(system\(\))R
X1 F
X(,)R
X1055(but)S
X1163(is)S
X1231(separate)S
X1470(on)S
X1560(some)S
X1722(systems)S
X1954(for)S
X2054(ef\256ciency)S
X2336(reasons)S
X2557(\(i.e.)S
X2683(not)S
X2790(invokin)S
X666 1692(wo)U
X769(shells)S
X941(to)S
X1014(get)S
X1116(one\).)S
X1294(Return)S
X1495(value)S
X1659(is)S
X1725(0)S
X1780(for)S
X1879(success.)S
X3 F
X432 1866(s)U
X432 1791(bool)U
X5 F
X(_)R
X3 F
X(t)R
X458 1866(ys)U
X5 F
X(_)R
X3 F
X(pipe\(char)R
X843(*cmd,)S
X1036(int)S
X1135(\(*wf\)\(FILE)S
X1480(*\),)S
X1574(long)S
X1717(\(*rf\)\(FILE)S
X2043(*\)\))S
X1 F
X2995 1944(e)U
X648 2022(s)U
X648 1944(Used)U
X814(for)S
X921(the)S
X3 F
X1031(!)S
X1 F
X1105(command.)S
X1433(The)S
X1565(\256rst)S
X1698(parameter)S
X1990(is)S
X2064(the)S
X2174(command)S
X2463(to)S
X2544(invoke,)S
X2769(while)S
X2944(th)S
X674 2022(econd)U
X865(and)S
X994(third)S
X1152(are)S
X1266(functions)S
X1544(which)S
X1738(should)S
X1947(be)S
X2042(called)S
X2231(with)S
X2381(an)S
X2476(open)S
X2637(\256le)S
X2754(pointer)S
X2973(in)S
X2998 2100(s)U
X648 2178(a)U
X648 2100(order)U
X816(to)S
X896(write)S
X1059(out)S
X1171(old,)S
X1300(or)S
X1383(read)S
X1524(in)S
X1603(new)S
X1741(lines)S
X1893(\(respectively\).)S
X2321(Note)S
X2477(that)S
X2603(if)S
X2671(``real'')S
X2885(pipe)S
X677 2178(re)U
X754(not)S
X864(available)S
X1100(,)S
X1143(it)S
X1205(is)S
X1275(acceptabl)S
X1522(e)S
X1577(to)S
X1654(implement)S
X1960(this)S
X2081(function)S
X2325(using)S
X2493(temporary)S
X2788(\256les,)S
X2940(but)S
X3 F
X432 2355(v)U
X1 F
X648 2256(the)U
X3 F
X750(wf)S
X1 F
X842(function)S
X1083(must)S
X1233(obviously)S
X1515(be)S
X1599(called)S
X1777(before)S
X3 F
X1967(rf)S
X1 F
X(.)R
X3 F
X465 2355(oid)U
X575(sys)S
X5 F
X(_)R
X3 F
X(exit\(int)R
X916(code\))S
X1 F
X648 2433(E)U
X(xit)R
X790(with)S
X940(given)S
X1119(exit)S
X1250(status.)S
X1472(This)S
X1622(routine)S
X1840(must)S
X2000(not)S
X2116(return.)S
X2344(The)S
X2478(editor)S
X2663(is)S
X2739(considered)S
X2995 2511(e)U
X648 2589(m)U
X648 2511(``dead'')U
X894(once)S
X1052(it)S
X1122(has)S
X1244(been)S
X1402(called,)S
X1609(and)S
X1738(no)S
X1838(further)S
X2051(calls)S
X2205(to)S
X2289(editor)S
X2475(functions)S
X2753(should)S
X2962(b)S
X699 2589(ade.)U
X3 F
X868 2688(\))U
X432(void)S
X575(delay\(void)S
X1 F
X648 2766(Delay)U
X832(for)S
X936(a)S
X992(short)S
X1151(time,)S
X1311(about)S
X1484(a)S
X1540(\256fth)S
X1677(of)S
X1759(a)S
X1815(second.)S
X2064(This)S
X2208(is)S
X2279(used)S
X2427(for)S
X2530(showing)S
X2780(matching)S
X2998 2844(s)U
X648 2922(n)U
X648 2844(brackets)U
X891(when)S
X3 F
X1058(showmatch)S
X1 F
X1402(is)S
X1470(set.)S
X1606(It)S
X1670(is)S
X1738(acceptabl)S
X1985(e)S
X2038(to)S
X2113(just)S
X2232(return)S
X2412(if)S
X2475(implement)S
X2755(ing)S
X2862(this)S
X2980(i)S
X681 2922(ot)U
X754(easy.)S
X3 F
X990 3078(l)U
X1 F
X432 3177(A)U
X3 F
X432 3078(4.2.)U
X576(Screen)S
X788(Contro)S
X1 F
X480 3177(n)U
X539(instance)S
X780(of)S
X861(the)S
X967(following)S
X1249(structure)S
X1505(must)S
X1659(be)S
X1747(de\256ned)S
X1966(in)S
X2042(order)S
X2206(to)S
X2282(allow)S
X2453(screen)S
X2646(output)S
X2839(to)S
X2915(take)S
X2 F
X432 4707(2)U
X1 F
X432 3255(place:)U
X2 F
X465 4707(5th)U
X571(September)S
X871(1992)S
X2834(Page)S
X2991(7)S
XEP
X%%Page: ? 8
XBP
X2 F
X66 Z
X2998 366(s)U
X432(8)S
X2399(Xvi)S
X2508(Source)S
X2713(Code)S
X2874(Note)S
X3 F
X476 594(typedef)U
X707(struct)S
X894(virtscr)S
X5 F
X1102({)S
X3 F
X1350 672(;)U
X520 750(i)U
X520 672(genptr)U
X993(*pv)S
X5 F
X(_)R
X3 F
X(window)R
X538 750(nt)U
X993(pv)S
X5 F
X(_)R
X3 F
X(rows;)R
X432 906(/)U
X520 828(int)U
X993(pv)S
X5 F
X(_)R
X3 F
X(cols;)R
X450 906(*)U
X505(public:)S
X725(*/)S
X520 984(V)U
X(irtScr)R
X993(*\(*v)S
X5 F
X(_)R
X3 F
X(new\)\(VirtScr)R
X1539(*\);)S
X520 1218(i)U
X520 1062(void)U
X993(\(*v)S
X5 F
X(_)R
X3 F
X(close\)\(VirtScr)R
X1527(*\);)S
X538 1218(nt)U
X993(\(*v)S
X5 F
X(_)R
X3 F
X(rows\)\(VirtScr)R
X1528(*\);)S
X520 1452(v)U
X520 1296(int)U
X993(\(*v)S
X5 F
X(_)R
X3 F
X(cols\)\(VirtScr)R
X1498(*\);)S
X553 1452(oid)U
X993(\(*v)S
X5 F
X(_)R
X3 F
X(clear)R
X5 F
X(_)R
X3 F
X(all\)\(Vir)R
X1493(tScr)S
X1632(*\);)S
X1720 1530(;)U
X520 1686(v)U
X520 1530(void)U
X993(\(*v)S
X5 F
X(_)R
X3 F
X(clear)R
X5 F
X(_)R
X3 F
X(line\)\(Vir)R
X1526(tScr)S
X1665(*\))S
X553 1686(oid)U
X993(\(*v)S
X5 F
X(_)R
X3 F
X(goto\)\(VirtScr)R
X1513(*,)S
X1585(int)S
X1684(row,)S
X1833(int)S
X1932(col\);)S
X2067 1764(,)U
X520(void)S
X993(\(*v)S
X5 F
X(_)R
X3 F
X(advise\)\(VirtScr)R
X1568(*,)S
X1640(int)S
X1739(row,)S
X1888(int)S
X1987(col)S
X1728 1842(int)U
X1827(index,)S
X2020(char)S
X2170(*str\);)S
X2358 1998(;)U
X520 2076(v)U
X520 1998(void)U
X993(\(*v)S
X5 F
X(_)R
X3 F
X(write\)\(VirtScr)R
X1538(*,)S
X1610(int)S
X1709(row,)S
X1858(int)S
X1957(col,)S
X2076(char)S
X2226(*str\))S
X553 2076(oid)U
X993(\(*v)S
X5 F
X(_)R
X3 F
X(putc\)\(VirtScr)R
X1517(*,)S
X1589(int)S
X1688(row,)S
X1837(int)S
X1936(col,)S
X2055(int)S
X2154(ch\);)S
X520 2310(i)U
X520 2232(void)U
X993(\(*v)S
X5 F
X(_)R
X3 F
X(set)R
X5 F
X(_)R
X3 F
X(colour\)\(VirtScr)R
X1681(*,)S
X1753(int)S
X1852(colour\);)S
X538 2310(nt)U
X993(\(*v)S
X5 F
X(_)R
X3 F
X(colour)R
X5 F
X(_)R
X3 F
X(cost\)\(VirtScr)R
X1714(*\);)S
X520 2622(v)U
X520 2466(void)U
X993(\(*v)S
X5 F
X(_)R
X3 F
X(\257ush\)\(VirtScr)R
X1529(*\);)S
X553 2622(oid)U
X993(\(*v)S
X5 F
X(_)R
X3 F
X(beep\)\(VirtScr)R
X1524(*\);)S
X432 2778(/*)U
X505(optional:)S
X780(not)S
X894(used)S
X1045(if)S
X1107(NULL)S
X1313(*/)S
X520 2856(void)U
X993(\(*v)S
X5 F
X(_)R
X3 F
X(insert\)\(VirtScr)R
X1553(*,)S
X1625(int)S
X1724(row,)S
X1873(int)S
X1972(col,)S
X2091(char)S
X2241(*str\);)S
X2414 3012(;)U
X5 F
X476 3090(})U
X3 F
X520 3012(int)U
X993(\(*v)S
X5 F
X(_)R
X3 F
X(scroll\)\(VirtScr)R
X1545(*,)S
X1617(int)S
X1716(start,)S
X1887(int)S
X1986(end,)S
X2128(int)S
X2227(nlines\))S
X529 3090(VirtScr;)U
X1 F
X432 3225(T)U
X(he)R
X559(\256rst)S
X687(three)S
X843(\256elds)S
X1011(in)S
X1087(this)S
X1207(structure)S
X1462(are)S
X1567(``private'',)S
X1879(for)S
X1981(use)S
X2094(only)S
X2236(within)S
X2429(the)S
X2534(implement)S
X2814(ation)S
X2969(of)S
X432 3381(b)U
X432 3303(the)U
X550(``public'')S
X839(functions.)S
X1160(The)S
X1299(remaining)S
X1602(\256elds)S
X1782(are)S
X1899(all)S
X2001(function)S
X2257(pointers,)S
X2523(and)S
X2655(are)S
X2772(described)S
X465 3381(elow.)U
X659(Note)S
X814(that)S
X939(all)S
X1031(functions)S
X1303(have)S
X1454(at)S
X1528(least)S
X1675(one)S
X1797(parameter,)S
X2102(which)S
X2289(is)S
X2359(a)S
X2414(pointer)S
X2626(to)S
X2703(the)S
X2809(instance)S
X3002 3459(-)U
X432 3537(l)U
X432 3459(of)U
X517(the)S
X3 F
X627(VirtScr)S
X1 F
X869(in)S
X950(question.)S
X1241(This)S
X1387(is)S
X1460(always)S
X1672(referred)S
X1909(to)S
X1989(as)S
X3 F
X2073(vs)S
X1 F
X2161(below.)S
X2390(Note)S
X2547(also)S
X2682(that)S
X2809(the)S
X2918(top)S
X450 3537(eft-hand)U
X691(corner)S
X881(of)S
X958(the)S
X1060(window)S
X1295(is)S
X1361(taken)S
X1525(to)S
X1598(be)S
X1682(\(0,0\).)S
X3 F
X432 3636(v)U
X5 F
X(_)R
X3 F
X(new\(vs\))R
X1 F
X648 3714(Obtain)U
X860(a)S
X922(new)S
X3 F
X1065(VirtScr)S
X1 F
X(,)R
X1327(and)S
X1455(return)S
X1645(a)S
X1707(pointer)S
X1926(to)S
X2010(it.)S
X2117(This)S
X2266(is)S
X2342(not)S
X2458(used)S
X2611(at)S
X2690(present,)S
X2929(and)S
X648 3792(should)U
X846(return)S
X3 F
X1025(NULL)S
X1 F
X(.)R
X3 F
X714 3891(\))U
X432(v)S
X5 F
X(_)R
X3 F
X(close\(vs)R
X1 F
X648 3969(Close)U
X820(the)S
X922(window)S
X1157(to)S
X1230(which)S
X3 F
X1413(vs)S
X1 F
X1494(refers.)S
X3 F
X432 4068(v)U
X5 F
X(_)R
X3 F
X(rows\(vs\))R
X1 F
X648 4146(Return)U
X849(the)S
X951(number)S
X1174(of)S
X1251(rows)S
X1402(in)S
X3 F
X1475(vs)S
X1 F
X(.)R
X2 F
X432 4707(P)U
X(age)R
X589(8)S
X2453(25th)S
X2592(September)S
X2892(1992)S
XEP
X%%Page: ? 9
XBP
X2 F
X66 Z
X2991 366(9)U
X3 F
X432 558(v)U
X2 F
X432 366(Xvi)U
X541(Source)S
X746(Code)S
X907(Notes)S
X5 F
X465 558(_)U
X3 F
X(cols\(vs\))R
X1 F
X648 636(R)U
X(eturn)R
X849(the)S
X951(number)S
X1174(of)S
X1251(columns)S
X1496(in)S
X3 F
X1569(vs)S
X1 F
X(.)R
X3 F
X432 735(v)U
X5 F
X(_)R
X3 F
X(clear)R
X5 F
X(_)R
X3 F
X(all\(vs\))R
X1 F
X648 813(Clear)U
X812(the)S
X914(window)S
X1149(completel)S
X1407(y.)S
X3 F
X432 912(v)U
X5 F
X(_)R
X3 F
X(clear)R
X5 F
X(_)R
X3 F
X(line\(vs,)R
X891(int)S
X990(row,)S
X1139(int)S
X1238(col\))S
X1 F
X648 990(Clear)U
X816(the)S
X922(speci\256ed)S
X1182(line,)S
X1323(from)S
X1477(the)S
X1583(given)S
X1755(column)S
X1977(to)S
X2053(the)S
X2158(right)S
X2307(hand)S
X2460(edge)S
X2609(of)S
X2689(the)S
X2794(window,)S
X3 F
X432 1167(v)U
X1 F
X648 1068(inclusive.)U
X5 F
X465 1167(_)U
X3 F
X(goto\(vs,)R
X739(int)S
X838(row,)S
X987(int)S
X1086(col\))S
X1 F
X648 1245(M)U
X(ove)R
X824(the)S
X926(cursor)S
X1113(to)S
X1186(the)S
X1288(speci\256ed)S
X1544(row)S
X1669(and)S
X1786(column.)S
X3 F
X432 1344(v)U
X5 F
X(_)R
X3 F
X(advise\(vs,)R
X794(int)S
X893(row,)S
X1042(int)S
X1141(col,)S
X1260(int)S
X1359(index,)S
X1552(char)S
X1702(*str\))S
X1 F
X648 1422(This)U
X794(function)S
X1042(is)S
X1115(called)S
X1299(when)S
X1470(the)S
X1578(editor)S
X1759(is)S
X1831(about)S
X2005(to)S
X2084(produce)S
X2324(some)S
X2491(output)S
X2687(on)S
X2781(the)S
X2889(same)S
X648 1578(p)U
X648 1500(line)U
X770(as)S
X849(the)S
X953(last)S
X1068(output,)S
X1277(but)S
X1385(separate)S
X1624(from)S
X1776(it)S
X1836(by)S
X1926(one)S
X2045(or)S
X2124(more)S
X2283(characters.)S
X2611(The)S
X2736(destination)S
X681 1578(osition)U
X898(is)S
X980(the)S
X1098(coordinate)S
X1413(pair)S
X3 F
X1553(\(row,)S
X1740(col)S
X1857(+)S
X1933(index\))S
X1 F
X(,)R
X2163(and)S
X3 F
X2295(str)S
X1 F
X2409(contains)S
X2665(the)S
X2782(string)S
X2969(of)S
X648 1734(c)U
X648 1656(characters)U
X943(which)S
X1133(are)S
X1242(in)S
X1322(the)S
X1431(window)S
X1673(starting)S
X1899(at)S
X1975(position)S
X3 F
X2215(\(row,)S
X2392(col\))S
X1 F
X(.)R
X2561(Where)S
X2764(there)S
X2923(is)S
X2995(a)S
X677 1734(ost)U
X780(incurred)S
X1025(by)S
X1117(moving)S
X1344(the)S
X1450(cursor)S
X1641(to)S
X1718(a)S
X1773(speci\256c)S
X2000(screen)S
X2193(position,)S
X2447(the)S
X2552(terminal)S
X2795(interface)S
X2995 1812(a)U
X648 1890(s)U
X648 1812(module)U
X869(may)S
X1006(decide)S
X1201(to)S
X1276(write)S
X1435(the)S
X1538(intervening)S
X1860(characters)S
X2149(to)S
X2223(the)S
X2326(screen)S
X2517(rather)S
X2693(than)S
X2829(using)S
X674 1890(peci\256c)U
X889(``move)S
X1119(cursor'')S
X1367(sequence,)S
X1664(in)S
X1754(order)S
X1932(to)S
X2022(minimise)S
X2305(the)S
X2424(number)S
X2664(of)S
X2758(characters)S
X648 2067(N)U
X648 1968(written)U
X856(to)S
X929(the)S
X1031(terminal.)S
X696 2067(ote)U
X799(that)S
X920(for)S
X1020(many)S
X1189(environments,)S
X1587(the)S
X1690(cost)S
X1819(of)S
X1897(re-positioning)S
X2289(the)S
X2392(cursor)S
X2580(is)S
X2647(nil,)S
X2756(and)S
X2874(under)S
X3 F
X432 2244(v)U
X1 F
X648 2145(these)U
X805(circumstance)S
X1151(s)S
X1199(this)S
X1316(function)S
X1557(need)S
X1703(not)S
X1809(do)S
X1897(anything.)S
X5 F
X465 2244(_)U
X3 F
X(write\(vs,)R
X764(int)S
X863(row,)S
X1012(int)S
X1111(col,)S
X1230(char)S
X1380(*str\))S
X1 F
X648 2322(W)U
X(rite)R
X826(the)S
X935(speci\256ed)S
X1198(string)S
X1377(of)S
X1461(characters)S
X1755(into)S
X1885(the)S
X1993(window,)S
X2251(starting)S
X2476(at)S
X2551(the)S
X2659(speci\256ed)S
X2921(row)S
X2995 2400(e)U
X648 2478(l)U
X648 2400(and)U
X771(column.)S
X1035(The)S
X1165(parameters)S
X1481(will)S
X1611(be)S
X1701(such)S
X1850(that)S
X1976(the)S
X2084(string)S
X2261(will)S
X2390(always)S
X2600(\256t)S
X2682(into)S
X2811(a)S
X2867(singl)S
X666 2478(ine)U
X770(of)S
X849(the)S
X953(window,)S
X1207(i.e.)S
X1312(no)S
X1402(line-wrapping)S
X1795(is)S
X1863(necessary;)S
X2161(however,)S
X2428(it)S
X2487(is)S
X2554(quite)S
X2708(possible)S
X2947(for)S
X648 2634(t)U
X648 2556(the)U
X752(string)S
X926(to)S
X1001(end)S
X1120(on)S
X1210(the)S
X1314(last)S
X1429(character)S
X1693(of)S
X1771(a)S
X1823(line,)S
X1961(and)S
X2079(some)S
X2241(implement)S
X2521(ations)S
X2701(will)S
X2826(need)S
X2973(to)S
X666 2634(ake)U
X779(special)S
X983(precautions)S
X1308(to)S
X1381(handle)S
X1578(this)S
X1695(correctly.)S
X3 F
X432 2733(v)U
X5 F
X(_)R
X3 F
X(putc\(vs,)R
X743(int)S
X842(row,)S
X991(int)S
X1090(col,)S
X1209(int)S
X1308(ch\))S
X1 F
X648 2811(This)U
X787(is)S
X853(like)S
X3 F
X973(v)S
X5 F
X(_)R
X3 F
X(write)R
X1 F
X1207(but)S
X1313(for)S
X1412(a)S
X1463(single)S
X1642(character.)S
X3 F
X432 2910(v)U
X5 F
X(_)R
X3 F
X(set)R
X5 F
X(_)R
X3 F
X(colour\(vs,)R
X907(int)S
X1006(colour\))S
X1 F
X648 2988(Set)U
X770(the)S
X888(colour)S
X1094(for)S
X1209(all)S
X1311(subsequent)S
X1641(output)S
X1846(\(including)S
X2153(clearing)S
X2401(of)S
X2493(lines)S
X2654(or)S
X2746(the)S
X2863(whole)S
X3 F
X432 3165(v)U
X1 F
X648 3066(window\))U
X905(to)S
X978(the)S
X1080(speci\256ed)S
X1336(colour.)S
X1565(The)S
X1689(meaning)S
X1937(of)S
X2014(the)S
X2116(value)S
X2280(is)S
X2346(system-speci\256c.)S
X5 F
X465 3165(_)U
X3 F
X(colour)R
X5 F
X(_)R
X3 F
X(cost\(vs\))R
X1 F
X648 3243(R)U
X(eturn)R
X855(the)S
X963(number)S
X1192(of)S
X1274(extra)S
X1432(characters)S
X1725(which)S
X1913(are)S
X2020(taken)S
X2189(up)S
X2282(in)S
X2360(the)S
X2467(window)S
X2707(by)S
X2800(a)S
X2856(colour)S
X648 3399(t)U
X648 3321(change.)U
X895(This)S
X1034(is)S
X1100(almost)S
X1297(always)S
X1502(0,)S
X1574(but)S
X1680(there)S
X1833(exist)S
X1979(some)S
X2140(terminals)S
X2406(for)S
X2505(which)S
X2688(it)S
X2746(is)S
X2812(not)S
X2918(\(see)S
X666 3399(he)U
X750(``)S
X3 F
X(sg)R
X1 F
X('')R
X3 F
X919(termcap)S
X1 F
X1175(capabilit)S
X1400(y\).)S
X3 F
X432 3498(v)U
X5 F
X(_)R
X3 F
X(\257ush\(vs\))R
X1 F
X648 3576(Flush)U
X818(all)S
X906(screen)S
X1097(output,)S
X1305(and)S
X1423(move)S
X1592(the)S
X1695(cursor)S
X1883(on)S
X1972(the)S
X2075(screen)S
X2266(to)S
X2340(the)S
X2443(correct)S
X2648(position.)S
X2922(The)S
X3002 3654(r)U
X3 F
X648 3732(x)U
X1 F
X648 3654(screen)U
X872(need)S
X1052(not)S
X1192(actually)S
X1455(be)S
X1573(updated)S
X1837(until)S
X2013(either)S
X2218(this)S
X2368(function)S
X2642(is)S
X2741(called,)S
X2969(o)S
X3 F
X681 3732(vi)U
X5 F
X(_)R
X3 F
X(handle)R
X5 F
X(_)R
X3 F
X(event\(\))R
X1 F
X1205(returns.)S
X3 F
X432 3831(v)U
X5 F
X(_)R
X3 F
X(beep\(vs\))R
X1 F
X648 3909(Beep.)U
X844(It)S
X906(is)S
X972(acceptabl)S
X1219(e)S
X1270(to)S
X1343(\257ash)S
X1490(the)S
X1592(screen)S
X1782(or)S
X1859(window)S
X2094(if)S
X2156(no)S
X2244(audio)S
X2412(facility)S
X2619(is)S
X2685(available)S
X2921(.)S
X3 F
X432 4008(v)U
X5 F
X(_)R
X3 F
X(insert\(vs,)R
X779(int)S
X878(row,)S
X1027(int)S
X1126(col,)S
X1245(char)S
X1395(*str\))S
X1 F
X648 4086(This)U
X811(function)S
X1076(inserts)S
X1294(the)S
X1420(given)S
X1612(string)S
X1808(at)S
X1901(the)S
X2027(given)S
X2219(position,)S
X2494(pushing)S
X2749(any)S
X2889(other)S
X648 4242(p)U
X648 4164(characters)U
X938(on)S
X1028(the)S
X1132(same)S
X1291(row)S
X1418(to)S
X1492(the)S
X1595(right.)S
X1781(If)S
X1848(such)S
X1992(a)S
X2044(facility)S
X2252(is)S
X2319(not)S
X2426(available)S
X2662(,)S
X2702(the)S
X2805(function)S
X681 4242(ointer)U
X856(should)S
X1054(be)S
X1138(set)S
X1233(to)S
X3 F
X1306(NULL)S
X1 F
X(.)R
X2 F
X432 4707(2)U
X(5th)R
X571(September)S
X871(1992)S
X2834(Page)S
X2991(9)S
XEP
X%%Page: ? 10
XBP
X2 F
X66 Z
X2998 366(s)U
X3 F
X432 558(v)U
X2 F
X432 366(10)U
X2399(Xvi)S
X2508(Source)S
X2713(Code)S
X2874(Note)S
X5 F
X465 558(_)U
X3 F
X(scroll\(vs,)R
X771(int)S
X870(start,)S
X1041(int)S
X1140(end,)S
X1282(int)S
X1381(nlines\))S
X1 F
X648 636(T)U
X(his)R
X789(function)S
X1032(scrolls)S
X1228(the)S
X1332(set)S
X1429(of)S
X1508(lines)S
X1656(between)S
X3 F
X1899(start)S
X1 F
X2055(and)S
X3 F
X2174(end)S
X1 F
X2301(\(inclusive\))S
X2606(by)S
X3 F
X2695(nlines)S
X1 F
X2883(lines.)S
X648 792(u)U
X648 714(If)U
X3 F
X720(nlines)S
X1 F
X913(is)S
X985(positive,)S
X2 F
X1238(normal)S
X1 F
X1457(scrolling)S
X1715(should)S
X1919(be)S
X2009(done,)S
X2182(i.e.)S
X2291(the)S
X2399(lines)S
X2551(should)S
X2755(be)S
X2845(moved)S
X681 792(pwards)U
X899(with)S
X1043(respect)S
X1256(to)S
X1334(the)S
X1441(window.)S
X1720(If)S
X3 F
X1791(nlines)S
X1 F
X1983(is)S
X2054(negative,)S
X2320(scrolling)S
X2577(should)S
X2779(be)S
X2867(in)S
X2944(the)S
X2995 870(e)U
X648 948(f)U
X648 870(reverse)U
X870(direction.)S
X1174(The)S
X1308(lines)S
X1464(which)S
X1657(are)S
X1769(left)S
X1888(by)S
X1986(the)S
X2098(scrolling)S
X2360(should)S
X2568(be)S
X2662(cleared.)S
X2922(Th)S
X670 948(unction)U
X889(should)S
X1087(return)S
X1266(non-zero)S
X1522(if)S
X1584(the)S
X1686(scrolling)S
X1938(was)S
X2063(successful,)S
X2373(otherwise)S
X2651(0.)S
X3 F
X432 1203(4)U
X1 F
X648 1047(If)U
X714(scrolling)S
X966(is)S
X1032(not)S
X1138(available)S
X1374(,)S
X1413(the)S
X1515(function)S
X1756(pointer)S
X1964(should)S
X2162(be)S
X2246(set)S
X2341(to)S
X3 F
X2414(NULL)S
X1 F
X(.)R
X3 F
X465 1203(.3.)U
X576(Parameters)S
X1 F
X432 1302(D)U
X(efault)R
X651(values)S
X841(should)S
X1039(be)S
X4 F
X1123(#)S
X3 F
X(de\256ne)R
X1 F
X(d)R
X1380(for)S
X1479(certain)S
X1679(parameters)S
X1989(as)S
X2066(follows:)S
X5 F
X2452 1353(_)U
X970(_)S
X1000(____________________________________________)S
X1 F
X1003 1431(Parameter)U
X1291(Name)S
X1587(Type)S
X4 F
X1973(#)S
X3 F
X(de\256ne)R
X1 F
X2197(name)S
X5 F
X2452 1443(_)U
X970(_)S
X1000(____________________________________________)S
X3 F
X1003 1521(syscolour)U
X1 F
X1547(numeric)S
X3 F
X1861(DEF)S
X5 F
X(_)R
X3 F
X(SYSCOLOUR)R
X1003 1677(s)U
X1003 1599(colour)U
X1 F
X1547(numeric)S
X3 F
X1861(DEF)S
X5 F
X(_)R
X3 F
X(COLOUR)R
X1029 1677(tatuscolour)U
X1 F
X1547(numeric)S
X3 F
X1861(DEF)S
X5 F
X(_)R
X3 F
X(STCOLOUR)R
X2404 1755(R)U
X1003 1833(h)U
X1003 1755(roscolour)U
X1 F
X1547(numeric)S
X3 F
X1861(DEF)S
X5 F
X(_)R
X3 F
X(ROSCOLOU)R
X1040 1833(elp\256le)U
X1 F
X1579(string)S
X3 F
X1861(HELPFILE)S
X5 F
X970 1923(_)U
X3 F
X1911(format)T
X1 F
X1579(string)S
X3 F
X1861(DEF)S
X5 F
X(_)R
X3 F
X(TFF)R
X5 F
X1000 1923(_____________________________________________)U
X0 F
X970 1923 M
X11 102 3 0 32 0 0 3 PS32
X970 1881 M
X11 102 3 0 32 0 0 3 PS32
X970 1815 M
X11 102 3 0 32 0 0 3 PS32
X970 1749 M
X11 102 3 0 32 0 0 3 PS32
X970 1683 M
X11 102 3 0 32 0 0 3 PS32
X970 1617 M
X11 102 3 0 32 0 0 3 PS32
X970 1551 M
X11 102 3 0 32 0 0 3 PS32
X970 1485 M
X11 102 3 0 32 0 0 3 PS32
X970 1419 M
X11 102 3 0 32 0 0 3 PS32
X1497 1923 M
X11 102 3 0 32 0 0 3 PS32
X1497 1881 M
X11 102 3 0 32 0 0 3 PS32
X1497 1815 M
X11 102 3 0 32 0 0 3 PS32
X1497 1749 M
X11 102 3 0 32 0 0 3 PS32
X1497 1683 M
X11 102 3 0 32 0 0 3 PS32
X1497 1617 M
X11 102 3 0 32 0 0 3 PS32
X1497 1551 M
X11 102 3 0 32 0 0 3 PS32
X1497 1485 M
X11 102 3 0 32 0 0 3 PS32
X1497 1419 M
X11 102 3 0 32 0 0 3 PS32
X1811 1923 M
X11 102 3 0 32 0 0 3 PS32
X1811 1881 M
X11 102 3 0 32 0 0 3 PS32
X1811 1815 M
X11 102 3 0 32 0 0 3 PS32
X1811 1749 M
X11 102 3 0 32 0 0 3 PS32
X1811 1683 M
X11 102 3 0 32 0 0 3 PS32
X1811 1617 M
X11 102 3 0 32 0 0 3 PS32
X1811 1551 M
X11 102 3 0 32 0 0 3 PS32
X1811 1485 M
X11 102 3 0 32 0 0 3 PS32
X1811 1419 M
X11 102 3 0 32 0 0 3 PS32
X2485 1923 M
X11 102 3 0 32 0 0 3 PS32
X2485 1881 M
X11 102 3 0 32 0 0 3 PS32
X2485 1815 M
X11 102 3 0 32 0 0 3 PS32
X2485 1749 M
X11 102 3 0 32 0 0 3 PS32
X2485 1683 M
X11 102 3 0 32 0 0 3 PS32
X2485 1617 M
X11 102 3 0 32 0 0 3 PS32
X2485 1551 M
X11 102 3 0 32 0 0 3 PS32
X2485 1485 M
X11 102 3 0 32 0 0 3 PS32
X2485 1419 M
X11 102 3 0 32 0 0 3 PS32
X1 F
X432 2214(T)U
X3 F
X432 2115(4.4.)U
X576(File)S
X703(Formats)S
X1 F
X472 2214(he)U
X567(functions)S
X845(in)S
X3 F
X929(xvi)S
X1 F
X1046(which)S
X1240(read)S
X1386(and)S
X1513(write)S
X1680(text)S
X1810(\256les)S
X1952(are)S
X2064(aware)S
X2253(of)S
X2340(several)S
X2558(different)S
X2816(newline)S
X432 2292(conventions)U
X775(\(for)S
X899(example,)S
X5 F
X1163("\\)S
X3 F
X1215(n)S
X5 F
X(")R
X1 F
X1305(on)S
X1543(,)S
X5 F
X1585("\\)S
X3 F
X1637(r)S
X5 F
X1672(\\)S
X3 F
X1696(n)S
X5 F
X(")R
X1 F
X1786(on)S
X1877(MS-DOS,)S
X2170(and)S
X2290(so)S
X2374(on\),)S
X2504(so)S
X2588(that)S
X2711(any)S
X2830(version)S
X60 Z
X1394(UNIX)S
X66 Z
X432 2370(o)U
X(f)R
X523(the)S
X639(editor)S
X828(can)S
X955(read)S
X1104(and)S
X1235(write)S
X1406(any)S
X1536(of)S
X1626(the)S
X1741(supported)S
X2036(formats.)S
X2311(The)S
X2448(value)S
X2625(of)S
X2715(the)S
X3 F
X2830(format)S
X1 F
X432 2526(f)U
X432 2448(parameter)U
X731(\(which)S
X951(can)S
X1079(be)S
X1177(set)S
X1286(to)S
X1373(``)S
X3 F
X(unix)R
X1 F
X('',)R
X1639(``)S
X3 F
X(msdos)R
X1 F
X('',)R
X1957(``)S
X3 F
X(macintosh)R
X1 F
X('',)R
X2388(etc.\))S
X2539(determines)S
X2863(which)S
X454 2526(ormat)U
X634(is)S
X705(currently)S
X969(being)S
X1142(used.)S
X1329(If)S
X1400(you)S
X1526(are)S
X1633(porting)S
X3 F
X1849(xvi)S
X1 F
X1959(to)S
X2036(a)S
X2091(system)S
X2300(with)S
X2443(a)S
X2498(newline)S
X2732(convention)S
X2991 2604(y)U
X432 2682(h)U
X432 2604(which)U
X621(isn't)S
X766(one)S
X889(of)S
X972(those)S
X1139(currently)S
X1403(supported)S
X1690(\(see)S
X1823(the)S
X1930(table)S
X2084(called)S
X3 F
X2267(tftable)S
X1 F
X2477(in)S
X3 F
X2555(\256leio.c)S
X1 F
X(\))R
X2785(you)S
X2911(ma)S
X465 2682(ave)U
X578(to)S
X651(add)S
X768(a)S
X819(new)S
X951(entry)S
X1108(to)S
X1181(the)S
X1283(table.)S
X432 2781(U)U
X(nfortunately,)R
X851(the)S
X964(current)S
X1183(design)S
X1388(is)S
X1465(not)S
X1582(as)S
X1670(general)S
X1896(as)S
X1984(it)S
X2052(ought)S
X2234(to)S
X2317(be.)S
X2450(If)S
X2526(you)S
X2657(happen)S
X2879(to)S
X2962(be)S
X2995 2859(a)U
X432 2937(c)U
X432 2859(porting)U
X661(to)S
X751(VMS,)S
X951(or)S
X1045(some)S
X1223(other)S
X1397(system)S
X1618(which)S
X1817(doesn't)S
X2049(use)S
X2175(either)S
X2362(a)S
X2429(single)S
X2624(character)S
X2902(or)S
X461 2937(onsecutive)U
X765(pair)S
X890(of)S
X968(characters)S
X1257(to)S
X1331(represent)S
X1595(a)S
X1647(newline,)S
X1895(you)S
X2017(will)S
X2142(have)S
X2289(quite)S
X2443(a)S
X2495(lot)S
X2587(of)S
X2665(work)S
X2823(to)S
X2896(do)S
X2984(if)S
X432 3114(I)U
X432 3015(you)U
X553(want)S
X703(to)S
X776(retain)S
X947(the)S
X1049(facility)S
X1256(for)S
X1355(converting)S
X1658(between)S
X1899(\256le)S
X2005(formats)S
X2228(within)S
X2418(the)S
X2520(editor.)S
X454 3114(n)U
X520(any)S
X648(case,)S
X810(your)S
X963(system)S
X1178(interface)S
X1439(module)S
X1668(should)S
X1876(de\256ne)S
X3 F
X2069(DEF)S
X5 F
X(_)R
X3 F
X(TFF)R
X1 F
X2390(to)S
X2473(be)S
X2567(the)S
X2679(index)S
X2857(of)S
X2944(the)S
X3002 3192(r)U
X3 F
X432 3270(P)U
X1 F
X432 3192(entry)U
X599(in)S
X3 F
X682(tftable)S
X1 F
X897(which)S
X1090(represents)S
X1389(the)S
X1501(default)S
X1715(format)S
X1922(for)S
X2031(your)S
X2184(system.)S
X2438(This)S
X2587(is)S
X2663(the)S
X2774(value)S
X2947(fo)S
X3 F
X472 3270(en\(P)U
X5 F
X(_)R
X3 F
X(format\))R
X1 F
X871(which)S
X1054(will)S
X1178(be)S
X1262(compiled)S
X1528(into)S
X1652(the)S
X1754(parameter)S
X2038(table.)S
X432 3525(T)U
X3 F
X432 3426(4.5.)U
X576(Notes)S
X756(on)S
X848(Termcap)S
X1126(Implementation)S
X1 F
X472 3525(here)U
X615(exists)S
X795(a)S
X3 F
X854(termcap)S
X1 F
X1118(implement)S
X1398(ation)S
X1559(of)S
X1644(the)S
X1754(terminal)S
X2001(interface,)S
X2276(currently)S
X2542(only)S
X2688(used)S
X2838(for)S
X2944(the)S
X2995 3603(e)U
X60 Z
X432(U)S
X66 Z
X621(port.)S
X806(This)S
X963(module)S
X1199(could)S
X1384(quite)S
X1554(easily)S
X1746(be)S
X1847(re-used)S
X2080(for)S
X2196(other)S
X2370(systems)S
X2618(if)S
X2697(desired;)S
X2944(th)S
X60 Z
X475(NIX)S
X66 Z
X432 3681(f)U
X(ollowing)R
X710(routines)S
X944(would)S
X1131(need)S
X1277(to)S
X1350(be)S
X1434(de\256ned)S
X1650(by)S
X1738(the)S
X1840(system)S
X2045(module:)S
X3 F
X432 3780(void)U
X575(foutch\(int)S
X876(c\))S
X1 F
X648 3858(Output)U
X855(a)S
X908(single)S
X1089(character)S
X1353(to)S
X1427(the)S
X1530(terminal.)S
X1810(This)S
X1950(must)S
X2101(be)S
X2186(implement)S
X2466(ed)S
X2551(as)S
X2629(a)S
X2681(function,)S
X2940(not)S
X3 F
X432 4035(v)U
X1 F
X648 3936(a)U
X699(macro,)S
X902(because)S
X1132(it)S
X1190(is)S
X1256(passed)S
X1454(as)S
X1531(a)S
X1582(parameter)S
X1866(into)S
X1990(the)S
X3 F
X2092(termcap)S
X1 F
X2348(library.)S
X3 F
X465 4035(oid)U
X575(moutch\(int)S
X909(c\))S
X1 F
X648 4113(S)U
X(ame)R
X819(as)S
X3 F
X899(foutch\(\))S
X1 F
X1148(except)S
X1344(that)S
X1467(it)S
X1528(can)S
X1644(be)S
X1731(implement)S
X2011(ed)S
X2098(as)S
X2178(a)S
X2232(macro.)S
X2460(This)S
X2601(will)S
X2727(be)S
X2813(used)S
X2958(by)S
X2 F
X432 4707(P)U
X1 F
X648 4191(the)U
X3 F
X750(termcap)S
X1 F
X1006(interface)S
X1257(module)S
X1476(to)S
X1549(write)S
X1706(characters)S
X1994(to)S
X2067(the)S
X2169(screen.)S
X2 F
X472 4707(age)U
X589(10)S
X2453(25th)S
X2592(September)S
X2892(1992)S
XEP
X%%Page: ? 11
XBP
X2 F
X66 Z
X2991 366(1)U
X3 F
X432 558(v)U
X2 F
X432 366(Xvi)U
X541(Source)S
X746(Code)S
X907(Notes)S
X2958(1)S
X3 F
X465 558(oid)U
X575(o\257ush\(void\))S
X1 F
X648 636(F)U
X(lush)R
X817(buffered)S
X1062(output)S
X1252(to)S
X1325(the)S
X1427(terminal.)S
X432 891(S)U
X3 F
X432 792(4.6.)U
X576(Entering/Leaving)S
X1092(Visual)S
X1294(Mode)S
X1 F
X469 891(ome)U
X614(facility)S
X831(is)S
X907(commonly)S
X1220(necessary)S
X1508(for)S
X1617(the)S
X1729(system)S
X1944(interface)S
X2205(module)S
X2433(to)S
X2515(be)S
X2608(able)S
X2748(to)S
X2830(tell)S
X2944(the)S
X3006 969(l)U
X432 1047(s)U
X432 969(terminal)U
X673(interface)S
X925(module)S
X1145(to)S
X1219(enter)S
X1373(or)S
X1451(exit)S
X2 F
X1572(visual)S
X1 F
X1752(mode.)S
X1960(This)S
X2100(might)S
X2276(mean)S
X2441(changing)S
X2704(the)S
X2806(termina)S
X458 1047(tate)U
X578(between)S
X823(``raw'')S
X1036(and)S
X1156(``cooked'')S
X1459(modes,)S
X1673(or)S
X1753(switching)S
X2034(display)S
X2249(pages.)S
X2463(No)S
X2569(speci\256c)S
X2795(interface)S
X2995 1125(a)U
X432(for)S
X538(this)S
X662(is)S
X735(de\256ned,)S
X975(although)S
X1234(the)S
X1343(standard)S
X1769(and)S
X1892(MS-DOS)S
X2171(implement)S
X2451(ations)S
X2636(do)S
X2730(use)S
X2846(such)S
X60 Z
X1592(UNIX)S
X66 Z
X2456 1203(.)U
X3 F
X432 1359(4)U
X1 F
X432 1203(facility,)U
X656(and)S
X773(the)S
X875(interface)S
X1126(functions)S
X1393(for)S
X1492(both)S
X1631(systems)S
X1862(are)S
X1964(identical)S
X2189(ly)S
X2262(de\256ned)S
X3 F
X465 1359(.7.)U
X576(Function)S
X851(Keys)S
X1012(/)S
X1052(Mouse)S
X1261(Handling)S
X1 F
X432 1458(F)U
X(unction)R
X689(key)S
X807(values)S
X998(are)S
X1101(coded)S
X1281(into)S
X1406(a)S
X1458(set)S
X1554(of)S
X4 F
X1632(#)S
X3 F
X(de\256ne)R
X1 F
X(d)R
X1890(constants)S
X2158(in)S
X2232(the)S
X2335(\256le)S
X3 F
X2442(ascii.h)S
X1 F
X(;)R
X2661(e.g.)S
X2780(the)S
X2882(value)S
X432 1635(I)U
X3 F
X432 1536(K)U
X5 F
X(_)R
X3 F
X(UARROW)R
X1 F
X847(might)S
X1022(be)S
X1106(given)S
X1274(as)S
X1351(input)S
X1508(when)S
X1673(the)S
X1775(keyboard)S
X2042(up-arrow)S
X2306(key)S
X2423(has)S
X2533(been)S
X2679(pressed.)S
X454 1635(f)U
X499(the)S
X602(global)S
X789(variable)S
X3 F
X1023(State)S
X1 F
X1189(is)S
X1256(not)S
X1363(equal)S
X1527(to)S
X3 F
X1600(NORMAL)S
X1 F
X(,)R
X1940(all)S
X2027(function)S
X2268(keys)S
X2411(except)S
X2604(for)S
X2703(a)S
X2754(backspace)S
X3006 1713(t)U
X432 1791(f)U
X432 1713(key)U
X551(are)S
X655(invalid)S
X861(input.)S
X1059(If)S
X1127(an)S
X1213(invalid)S
X1419(key)S
X1538(is)S
X1606(pressed,)S
X1844(the)S
X1947(safest)S
X2120(strategy)S
X2351(may)S
X2487(be)S
X2572(to)S
X2646(beep)S
X2793(and)S
X2911(wai)S
X454 1791(or)U
X531(another)S
X750(key)S
X867(to)S
X940(be)S
X1024(pressed.)S
X3 F
X1283(NORMAL)S
X1 F
X1606(is)S
X1672(de\256ned)S
X1888(in)S
X3 F
X1961(xvi.h)S
X1 F
X(.)R
X2998 1890(s)U
X432 1968(a)U
X432 1890(Another)U
X686(facility)S
X909(which)S
X1108(may)S
X1259(be)S
X1359(provided)S
X1631(is)S
X1712(handling)S
X1979(mouse)S
X2188(input)S
X2360(on)S
X2463(systems)S
X2709(where)S
X2907(it)S
X2980(i)S
X461 1968(vailable.)U
X731(The)S
X857(strategy)S
X1089(for)S
X1190(interpreting)S
X1520(mouse)S
X1716(input)S
X1875(is)S
X1943(controlled)S
X2233(by)S
X2323(the)S
X3 F
X2427(mouseclick\(\))S
X1 F
X2805(function)S
X2995 2046(a)U
X432 2124(m)U
X432 2046(\(in)U
X3 F
X528(mouse.c)S
X1 F
X(\);)R
X817(the)S
X920(idea)S
X1051(is)S
X1117(to)S
X1190(make)S
X1354(the)S
X1456(strategy)S
X1686(independent)S
X2029(of)S
X2106(any)S
X2223(speci\256c)S
X2446(device)S
X2639(interface.)S
X2929(If)S
X483 2124(ouse)U
X637(button)S
X838(is)S
X915(pressed)S
X1146(before)S
X1347(a)S
X1409(keyboard)S
X1686(key)S
X1813(is)S
X1889(pressed,)S
X2136(the)S
X2248(following)S
X2536(routine)S
X2754(should)S
X2962(be)S
X432 2202(called:)U
X3 F
X648 2316(mouseclick\(int)U
X1080(row,)S
X1229(int)S
X1328(column\);)S
X1 F
X432 2430(w)U
X(here)R
X629(row)S
X768(and)S
X899(column)S
X1132(are)S
X1247(the)S
X1362(current)S
X1583(co-ordinates,)S
X1960(counted)S
X2203(in)S
X2289(character)S
X2564(positions,)S
X2854(of)S
X2944(the)S
X2998 2508(s)U
X432 2586(h)U
X432 2508(mouse)U
X631(pointer)S
X844(within)S
X1039(the)S
X1146(screen)S
X1341(or)S
X1423(editing)S
X1632(window.)S
X1910(If)S
X1980(the)S
X2086(mouse)S
X2284(is)S
X2354(moved)S
X2559(while)S
X2731(a)S
X2786(button)S
X2980(i)S
X465 2586(eld)U
X567(down,)S
X753(the)S
X855(routine)S
X3 F
X648 2700(m)U
X(ousedrag\(int)R
X1081(startrow,)S
X1362(int)S
X1461(endrow,)S
X1713(int)S
X1812(startcolumn,)S
X2192(int)S
X2291(endcolumn\);)S
X1 F
X3006 2814(t)U
X432 2892(e)U
X432 2814(should)U
X631(be)S
X716(called)S
X895(with)S
X1035(co-ordinates)S
X1383(describing)S
X1680(the)S
X1783(movement.)S
X2122(If)S
X2188(the)S
X2290(global)S
X2476(variable)S
X3 F
X2709(State)S
X1 F
X2874(is)S
X2940(no)S
X461 2892(qual)U
X596(to)S
X3 F
X669(NORMAL)S
X1 F
X(,)R
X1009(mouse)S
X1203(input)S
X1360(can)S
X1473(be)S
X1557(ignored)S
X1780(altogether.)S
X3002 2991(r)U
X432 3069(f)U
X432 2991(All)U
X539(this)S
X657(will)S
X782(be)S
X867(considerably)S
X1226(tidied)S
X1398(up)S
X1487(at)S
X1557(a)S
X1609(later)S
X1748(stage,)S
X1923(when)S
X2089(we)S
X2189(have)S
X2336(proper)S
X3 F
X2531(xvEvent)S
X1 F
X2785(types)S
X2947(fo)S
X454 3069(unction)U
X673(keys)S
X816(and)S
X933(mouse)S
X1127(actions.)S
X432 3324(F)U
X3 F
X432 3225(4.8.)U
X576(Main)S
X1 F
X469 3324(inally,)U
X662(the)S
X768(system)S
X977(interface)S
X1232(module)S
X1455(must)S
X1609(provide)S
X1836(a)S
X3 F
X1891(main\(\))S
X1 F
X2104(function.)S
X2388(This)S
X2531(function)S
X2776(must)S
X2930(call)S
X3 F
X432 3501(V)U
X432 3402(xvi)U
X5 F
X(_)R
X3 F
X(startup\(vs,)R
X875(argc,)S
X1038(argv,)S
X1205(env\))S
X1 F
X1348(at)S
X1417(startup,)S
X1635(with)S
X1774(parameters)S
X2084(as)S
X2161(follows:)S
X3 F
X480 3501(irstScr)U
X692(*vs;)S
X1 F
X648 3579(T)U
X(his)R
X799(is)S
X877(a)S
X940(pointer)S
X1160(to)S
X1245(the)S
X3 F
X1359(VirtScr)S
X1 F
X1605(structure)S
X1869(for)S
X1980(the)S
X2094(\256rst)S
X2231(window,)S
X2495(or)S
X2583(for)S
X2693(the)S
X2806(terminal)S
X3 F
X432 3756(i)U
X1 F
X648 3657(screen.)U
X3 F
X450 3756(nt)U
X531(argc,)S
X694(char)S
X844(**argv;)S
X1 F
X648 3834(T)U
X(hese)R
X827(are)S
X929(as)S
X1006(for)S
X1105(a)S
X3 F
X1156(main\(\))S
X1 F
X1365(function.)S
X3 F
X432 3933(char)U
X582(*env;)S
X1 F
X648 4011(This)U
X793(is)S
X865(an)S
X955(environment)S
X1315(string,)S
X1510(normally)S
X1775(the)S
X1883(return)S
X2067(value)S
X2236(from)S
X3 F
X2391(getenv\()S
X5 F
X(")R
X3 F
X(XVIN)R
X2794(IT)S
X5 F
X(")R
X3 F
X(\))R
X1 F
X(.)R
X2980(If)S
X5 F
X648 4167(")U
X1 F
X648 4089(the)U
X785(concept)S
X1046(of)S
X1158(environment)S
X1547(variables)S
X1841(does)S
X2019(not)S
X2160(exist,)S
X2358(a)S
X2443(string)S
X2649(of)S
X2760(the)S
X2896(form)S
X3 F
X676 4167(source)U
X2 F
X881(\256lename)S
X5 F
X(")R
X1 F
X1155(may)S
X1291(be)S
X1376(passed)S
X1575(instead,)S
X1801(so)S
X1883(as)S
X1961(to)S
X2034(allow)S
X2202(users)S
X2360(to)S
X2433(localise)S
X2655(their)S
X2797(usage)S
X2969(of)S
X432 4344(T)U
X648 4245(the)U
X750(editor.)S
X472 4344(he)U
X561(return)S
X745(value)S
X914(from)S
X3 F
X1069(xvi)S
X5 F
X(_)R
X3 F
X(startup\(\))R
X1 F
X1463(is)S
X1534(a)S
X1590(pointer,)S
X1820(which)S
X2008(will)S
X2137(be)S
X2226(used)S
X2374(in)S
X2452(future)S
X2636(to)S
X2714(identify)S
X2944(the)S
X2 F
X432 4707(2)U
X1 F
X432 4422(window)U
X667(for)S
X766(input)S
X923(events.)S
X1152(For)S
X1266(now,)S
X1419(it)S
X1477(should)S
X1675(be)S
X1759(stored)S
X1942(in)S
X2015(the)S
X3 F
X2117(VirtScr)S
X1 F
X('s)R
X3 F
X2399(pv)S
X5 F
X(_)R
X3 F
X(window)R
X1 F
X2745(\256eld.)S
X2 F
X465 4707(5th)U
X571(September)S
X871(1992)S
X2801(Page)S
X2958(11)S
XEP
X%%Page: ? 12
XBP
X2 F
X66 Z
X2998 366(s)U
X1 F
X432 558(H)U
X2 F
X432 366(12)U
X2399(Xvi)S
X2508(Source)S
X2713(Code)S
X2874(Note)S
X1 F
X480 558(aving)U
X670(called)S
X3 F
X870(xvi)S
X5 F
X(_)R
X3 F
X(startup\(\))R
X1 F
X(,)R
X1298(input)S
X1477(events)S
X1688(may)S
X1844(then)S
X2000(be)S
X2105(passed)S
X2324(to)S
X2418(the)S
X2541(editor)S
X2737(by)S
X2846(calling)S
X2995 636(e)U
X432 714(i)U
X3 F
X432 636(xvi)U
X5 F
X(_)R
X3 F
X(handle)R
X5 F
X(_)R
X3 F
X(event)R
X1 F
X948(with)S
X1090(a)S
X1144(pointer)S
X1355(to)S
X1431(an)S
X3 F
X1518(xvEvent)S
X1 F
X1774(structure)S
X2029(as)S
X2108(the)S
X2212(sole)S
X2342(argument.)S
X2653(This)S
X2794(structur)S
X450 714(s)U
X498(de\256ned)S
X714(as)S
X791(follows:)S
X5 F
X1238 828({)U
X3 F
X648(typedef)S
X879(struct)S
X1066(event)S
X736 906(enum)U
X5 F
X916({)S
X3 F
X824 984(E)U
X(v)R
X5 F
X(_)R
X3 F
X(char,)R
X1128 1062(t)U
X5 F
X736 1140(})U
X3 F
X824 1062(Ev)U
X5 F
X(_)R
X3 F
X(timeou)R
X1185 1140(ev)U
X5 F
X(_)R
X3 F
X(type;)R
X736 1218(union)U
X5 F
X920({)S
X3 F
X824 1296(/*)U
X897(Ev)S
X5 F
X(_)R
X3 F
X(char:)R
X1179(*/)S
X1238 1374(;)U
X824 1530(/)U
X824 1374(int)U
X923(evu)S
X5 F
X(_)R
X3 F
X(inchar)R
X842 1530(*)U
X897(Ev)S
X5 F
X(_)R
X3 F
X(timeout:)R
X1267(*/)S
X1317 1608(;)U
X5 F
X648 1686(})U
X736 1608(})U
X3 F
X1185(ev)S
X5 F
X(_)R
X3 F
X(u)R
X701 1686(xvEvent;)U
X4 F
X648 1842(#)U
X3 F
X(de\256ne)R
X978(ev)S
X5 F
X(_)R
X3 F
X(inchar)R
X1308(ev)S
X5 F
X(_)R
X3 F
X(u.evu)R
X5 F
X(_)R
X3 F
X(inchar)R
X1 F
X3007 1977(,)U
X432 2055(o)U
X432 1977(The)U
X3 F
X561(ev)S
X5 F
X(_)R
X3 F
X(type)R
X1 F
X804(\256eld)S
X948(is)S
X1019(a)S
X1075(tag)S
X1181(which)S
X1368(identi\256es)S
X1635(the)S
X1741(type)S
X1880(of)S
X1961(event)S
X2129(which)S
X2316(has)S
X2430(occurred.)S
X2725(At)S
X2817(present)S
X465 2055(nly)U
X580(two)S
X710(events)S
X909(are)S
X1020(supported:)S
X1329(an)S
X1422(input)S
X1588(character)S
X1859(from)S
X2018(the)S
X2129(user,)S
X2287(and)S
X2413(a)S
X2473(timeout.)S
X2742(The)S
X2874(union)S
X3 F
X2995 2133(r)U
X1 F
X432 2211(r)U
X432 2133(which)U
X620(follows)S
X845(contains)S
X1090(data)S
X1225(associated)S
X1521(with)S
X1664(each)S
X1810(event)S
X1978(type;)S
X2135(currently)S
X2398(only)S
X2541(the)S
X2647(type)S
X3 F
X2786(Ev)S
X5 F
X(_)R
X3 F
X(cha)R
X1 F
X454 2211(equires)U
X666(data,)S
X814(as)S
X891(may)S
X1026(be)S
X1110(seen.)S
END_OF_FILE
if test 33814 -ne `wc -c <'doc/source.ps2'`; then
echo shar: \"'doc/source.ps2'\" unpacked with wrong size!
fi
# end of 'doc/source.ps2'
fi
echo shar: End of archive 3 \(of 7\).
cp /dev/null ark3isdone
MISSING=""
for I in 1 2 3 4 5 6 7 ; do
if test ! -f ark${I}isdone ; then
MISSING="${MISSING} ${I}"
fi
done
if test "${MISSING}" = "" ; then
echo You have unpacked all 7 archives.
rm -f ark[1-9]isdone
else
echo You still need to unpack the following archives:
echo " " ${MISSING}
fi
## End of shell archive.
exit 0
exit 0 # Just in case...