📄 paper.ps
字号:
(refresh)3.83 E F1 1.33(\(\), or stop it from doing so if)B F2(boolf)3.83 E F11.33(is 0.)3.83 F 1.33(This only w)6.33 F 1.33(orks on screens, and,)-.1 F(unlik)97 518.4 Q(e)-.1 E F3(clear)3.032 E F1 .531(\(\), does not alter the contents of the screen.)B(If)5.531 E F2(scr)3.031 EF1(is)3.031 E F2(cur)3.031 E(scr)-.1 E F1 3.031(,t)C .531(he ne)405.297 518.4 R(xt)-.15 E F3(refresh)3.031 E F1 .531(\(\) call)B(will cause a clear)97 530.4 Q(-screen, e)-.2 E -.15(ve)-.25 G 2.5(ni).15 G 2.5(ft)223.57 530.4 S(he windo)232.18 530.4 Q 2.5(wp)-.25 G(assed to)283.59 530.4 Q F3(refresh)2.5 E F1(\(\) is not a screen.)A F3(clrtobot)72 558.6 Q F1<28293b87>A -.4(Wi)97 574.8 S1.287(pes the windo).4 F 3.787(wc)-.25 G 1.287(lear from the current \(y)182.141 574.8 R 2.5(,x)-.65 G 3.787(\)c)289.939 574.8 S 1.288(o-ordinates to the bottom.)301.496 574.8 R 1.288(This does not force a)6.288 F(clear)97 586.8 Q 1.505(-screen sequence on the ne)-.2 F 1.505(xt refresh under an)-.15 F 4.005(yc)-.15 G 4.005(ircumstances. This)322.341586.8 R 1.505(has no associated \231)4.005 F F0 -8.328(mm)C -4.998(vv)8.328 GF1<9a>4.998 E(command.)97 598.8 Q F3(clrtoeol)72 627 Q F1<28293b87>A -.4(Wi)97643.2 S .342(pes the windo).4 F 2.842(wc)-.25 G .342(lear from the current \(y)179.306 643.2 R 2.5(,x)-.65 G 2.842(\)c)283.324 643.2 S .342(o-ordinates to the end of the line.)293.936 643.2 R .343(This has no asso-)5.343 F(ciated \231)97 655.2 Q F0 -8.328(mm)C -4.998(vv)8.328 G F1 2.5<9a63>4.998 G(ommand.)152.534 655.2 Q F3(crmode)72 683.4 Q F1<28293b87>A 1.701(Identical to)97 699.6 R F3(cbreak)4.201 E F1 4.201(\(\). The)B 1.701(misnamed macro)4.201 F F3(crmode)4.201 E F1 1.701(\(\) and)B F3(nocrmode)4.201E F1 1.701(\(\) is retained for back-)B -.1(wa)97 711.6 S(rds compatibility with ealier v).1 E(ersions of the library)-.15 E(.)-.65 E EP%%Page: 8 7%%BeginPageSetupBP%%EndPageSetup/F0 10/Times-Bold@0 SF -6.108(PP)72 60 S -5.558(SS)6.108 G -4.998(11)5.558 G-3.328(::)4.998 G -4.998(11)3.328 G -4.998(99)4.998 G -3.328(--)4.998 G 334.474-4.998(88 S)3.328 H(Sc)-.56 E(cr)442.888 60 Q -.18(re)447.33 60 S(ee)451.592 60Q(en)456.034 60 Q 2.5(nP)460.476 60 S -.1(Pa)468.538 60 S(ac)474.55 60 Q(ck)479.552 60 Q(ka)483.994 60 Q(ag)489.556 60 Q(ge)494.558 60 Q(e)499.56 60 Q/F110/Courier-Bold@0 SF(delch)72 96 Q/F2 10/Times-Roman@0 SF(\(\);)A .408(Delete the character at the current \(y)97 112.2 R 2.5(,x)-.65 G 2.908(\)c)254.848 112.2 S 2.908(o-ordinates. Each)265.526 112.2 R .408(character after it on the line shifts to the)2.908 F(left, and the last character becomes blank.)97 124.2 Q F1(deleteln)72 152.4 QF2(\(\);)A 1.437(Delete the current line.)97 168.6 R(Ev)6.437 E 1.437(ery line belo)-.15 F 3.937(wt)-.25 G 1.436(he current one will mo)276.899168.6 R 1.736 -.15(ve u)-.15 H 1.436(p, and the bottom line will).15 F(become blank.)97 180.6 Q(The current \(y)5 E 2.5(,x)-.65 G 2.5(\)c)226.87180.6 S(o-ordinates will remain unchanged.)237.14 180.6 Q F1(delwin)72 208.8 QF2(\()A/F3 10/Times-Italic@0 SF(WINDO)A(W)-.5 E/F4 10/Symbol SF(*)2.5 E F3(win)A F2(\);)A .311(Deletes the windo)97 225 R 2.811(wf)-.25 G .311(rom e)182.943225 R 2.811(xistence. All)-.15 F .311(resources are freed for future use by)2.811 F F0 -4.438(cc)2.811 G -4.998(aa)4.438 G -2.778(ll)4.998 G -2.778(ll)2.778 G -4.998(oo)2.778 G -4.438(cc)4.998 G F2 2.811(\(3\). If)4.438 F 2.812(aw)2.812 G(indo)479.25 225 Q(w)-.25 E 1.749(has a)97 237 R F1(subwin)4.249 EF2 1.749(\(\) allocated windo)B 4.249(wi)-.25 G 1.749(nside of it, deleting the outer windo)249.525 237 R 4.248(wt)-.25 G 1.748(he subwindo)416.506 237 R 4.248(wi)-.25 G 4.248(sn)483.082 237 S(ot)496.22 237Q(af)97 249 Q .856(fected, e)-.25 F -.15(ve)-.25 G 3.356(nt).15 G .856(hough this does in)159.422 249 R -.25(va)-.4 G .856(lidate it.).25 F .856(Therefore, subwindo)5.856 F .856(ws should be deleted before their)-.25 F(outer windo)97 261 Q(ws are.)-.25 E F1(echo)72 289.2 Q F2<28293b87>A(Sets the terminal to echo characters.)97 305.4 Q F1(endwin)72 333.6 Q F2(\(\);)A 3.04(Finish up windo)97 349.8 R 5.54(wr)-.25 G 3.04(outines before e)183.93 349.8 R 5.54(xit. This)-.15 F 3.04(restores the terminal to the state it w)5.54 F 3.04(as before)-.1 F F1(initscr)97 361.8 Q F2 .147(\(\) \(or)B F1(gettmode)2.647 E F2 .147(\(\) and)BF1(setterm)2.647 E F2 .148(\(\)\) w)B .148(as called.)-.1 F .148(It should al)5.148 F -.1(wa)-.1 G .148(ys be called before e).1 F(xiting)-.15 E 1.047(and before the f)97 373.8 R 1.047(inal calls to)-.2 F F1(delwin)3.547 E F23.547(\(\). It)B 1.046(does not e)3.547 F 3.546(xit. This)-.15 F 1.046(is especially useful for resetting tty)3.546 F(stats when trapping rubouts via)97 385.8 Q F0 -3.888(ss)2.5 G -2.778(ii)3.888G -4.998(gg)2.778 G -5.558(nn)4.998 G -4.998(aa)5.558 G -2.778(ll)4.998 G F2(\(2\).)2.778 E F1(erase)72 414 Q F2<28293b87>A .066(Erases the windo)97 430.2R 2.566(wt)-.25 G 2.566(ob)177.768 430.2 S .066(lanks without setting the clear flag.)190.334 430.2 R .066(This is analagous to)5.066 F F1(clear)2.567 E F2 .067(\(\), e)B .067(xcept that)-.15 F 1.363(it ne)97 442.2 R -.15(ve)-.25 G 3.863(rc).15 G 1.363(auses a clear)136.536 442.2 R 1.363(-screen sequence to be generated on a)-.2F F1(refresh)3.862 E F2 3.862(\(\). This)B 1.362(has no associated)3.862 F<99>97 454.2 Q F0 -8.328(mm)C -4.998(vv)8.328 G F2 2.5<9a63>4.998 G(ommand.)126.154454.2 Q F1(erasechar)72 482.4 Q F2<28293b87>A .23(Returns the erase character for the terminal,)97 498.6 R F3(i.e)2.73 E(.)-.15E F2 2.73(,t)C .231(he character used by the user to erase a single char)296.41498.6 R(-)-.2 E(acter from the input.)97 510.6 Q F1(flushok)72 538.8 Q F2(\()AF3(WINDO)A(W)-.5 E F4(*)2.5 E F3(win)A F2(,)A F3(int boolf)2.5 E F2(\);)A(Normally)97 555 Q(,)-.65 E F1(refresh)3.743 E F2(\(\))A F1(fflush)3.743 E F2(\()A F3 -.4('s)C F2(\);).4 E F3(stdout)3.743 E F2 1.243(when it is f)3.743 F(inished.)-.2 E F1(flushok)6.242 E F2 1.242(\(\) allo)B 1.242(ws you to control)-.25 F 2.5(this. if)97 567 R F3(boolf)2.5 E F2(is non-zero \()2.5 E F3(i.e)A(.)-.15 E F2 2.5(,n)C(on-zero\) it will do the)223.23 567 Q F1(fflush)2.5 E F2(\(\), otherwise it will not.)A F1(getch)72595.2 Q F2<28293b87>A .443(Gets a character from the terminal and \(if necessary\) echos it on the windo)97 611.4 R 4.244 -.65(w. T)-.25 H .444(his returns ERR if it).65 F -.1(wo)97623.4 S .436(uld cause the screen to scroll ille).1 F -.05(ga)-.15 G(lly).05 E5.435(.O)-.65 G .435(therwise, the character gotten is returned.)276.57 623.4 R(If)5.435 E F3(noec)2.935 E(ho)-.15 E F2(has)2.935 E .561(been set, then the windo)97 635.4 R 3.061(wi)-.25 G 3.061(sl)208.985 635.4 S.561(eft unaltered.)218.716 635.4 R .561(In order to retain control of the terminal, it is necessary)5.561 F .74(to ha)97 647.4 R 1.04 -.15(ve o)-.2 H .74(ne of).15 F F3(noec)3.24 E(ho)-.15 E F2(,)AF3(cbr)3.24 E(eak)-.37 E F2 3.24(,o)C(r)231.09 647.4 Q F3 -.15(ra)3.24 G(wmode).15 E F2 3.24(set. If)3.24 F .739(you do not set one, whate)3.239 F -.15(ve)-.25 G 3.239(rr).15 G .739(outine you call to)432.063 647.4 R(read characters will set)97 659.4 Q F3(cbr)2.5 E(eak)-.37 E F2(for you, and then reset to the original mode when f)2.5 E(inished.)-.2 E F1(getstr)72 687.6 Q F2(\()A F3 -.15(ch)C(ar).15 E F4(*)2.5 E F3(str)A F2<293b87>A .571(Get a string through the windo)97 703.8 R 3.071(wa)-.25 G .571(nd put it in the location pointed to by)236.826 703.8 R F3(str)3.072 E F23.072(,w)C .572(hich is assumed to be)416.162 703.8 R(lar)97 715.8 Q .798(ge enough to handle it.)-.18 F .798(It sets tty modes if necessary)5.798 F3.298(,a)-.65 G .797(nd then calls)336.578 715.8 R F1(getch)3.297 E F2 .797(\(\) \(or)B F1(wgetch)3.297 E F2 .797(\(\)\) to)B EP%%Page: 9 8%%BeginPageSetupBP%%EndPageSetup/F0 10/Times-Bold@0 SF -5.558(SS)72 60 S -4.438(cc)5.558 G 6.196 -4.438(rr ee)4.438 H -4.438(ee)4.438 G 11.116 -5.558(nn P)4.438 H -.1(Pa)-.55 G(ac)109.22660 Q(ck)114.228 60 Q(ka)118.67 60 Q(ag)124.232 60 Q(ge)129.234 60 Q 326.978(eP)134.236 60 S(PS)465.656 60 Q(S1)471.768 60 Q(1:)477.33 60 Q(:1)482.332 60 Q(19)485.664 60 Q(9-)490.666 60 Q(-9)495.668 60 Q(9)499 60 Q/F1 10/Times-Roman@0 SF1.192(get the characters needed to f)97 96 R 1.192(ill in the string until a ne)-.2 F 1.193(wline or EOF is encountered.)-.25 F1.193(The ne)6.193 F(wline)-.25 E(stripped of)97 108 Q 2.5(ft)-.25 G(he string.)148.41 108 Q(This returns ERR if it w)5 E(ould cause the screen to scroll ille)-.1 E -.05(ga)-.15 G(lly).05 E(.)-.65 E/F2 10/Courier-Bold@0 SF(gettmode)72 136.2 Q F1(\(\);)A(Get the tty stats.)97152.4 Q(This is normally called by)5 E F2(initscr)2.5 E F1(\(\).)A F2(getyx)72180.6 Q F1(\()A/F3 10/Times-Italic@0 SF(WINDO)A(W)-.5 E/F4 10/Symbol SF(*)2.5 EF3(win)A F1(,)A F3(int y)2.5 E F1(,)A F3(int x)2.5 E F1(\);)A .121(Puts the current \(y)97 196.8 R 2.5(,x)-.65 G 2.621(\)c)180.313 196.8 S .121(o-ordinates of)190.704 196.8 R F3(win)2.621 E F1 .121(in the v)2.621 F(ariables)-.25 E F3(y)2.621 E F1(and)2.62 E F3(x)2.62 E F1 5.12(.S)C .12(ince it is a macro, not a function,)371.79 196.8 R(you do not pass the address of)97 208.8 Q F3(y)2.5 E F1(and)2.5 E F3(x)2.5 EF1(.)A F2(idlok)72 237 Q F1(\()A F3(WINDO)A(W)-.5 E F4(*)2.5 E F3(win)A F1(,)AF3(int boolf)2.5 E F1(\);)A(Reserv)97 253.2 Q .248(ed for future use.)-.15 F.248(This will e)5.248 F -.15(ve)-.25 G .248(ntually signal to).15 F F2(refresh)2.748 E F1 .249(\(\) that it is all right to use the insert)B(and delete line sequences when updating the windo)97 265.2 Q -.65(w.)-.25 G F2(inch)72 293.4 Q F1<28293b87>A .608(Returns the character at the current position on the gi)97 309.6 R -.15(ve)-.25 G 3.108(nw).15 G(indo)339.302 309.6 Q 4.408 -.65(w. T)-.25 H .608(his does not mak).65 F 3.108(ea)-.1 G .908 -.15(ny c)458.832 309.6 T(hanges).15 E(to the windo)97 321.6 Q -.65(w.)-.25 G F2(initscr)72 349.8 Q F1(\(\);)A.573(Initialize the screen routines.)97 366 R .573(This must be called before an)5.573 F 3.073(yo)-.15 G 3.073(ft)353.639 366 S.573(he screen routines are used.)362.822 366 R .573(It ini-)5.573 F .564(tial\izes the terminal-type data and such, and without it none of the routines can \operate.)97 378 R .563(If standard)5.563 F .242(input is not a tty)97 390 R2.742(,i)-.65 G 2.742(ts)170.35 390 S .242(ets the specif)179.762 390 R .242(ications to the terminal whose name is pointed to by)-.2 F F3(Def)2.743 E F4(-)460.217 395 Q F3(term)465.707 390 Q F1(\(ini-)2.743 E .097(tially "dumb"\).)97 402 R .097(If the boolean)5.097 F F3(My)2.597 E F4(-)233.125 407 Q F3(term)238.615 402 Q F1 .097(is non-zero,)2.597 F F3(Def)2.597 E F4(-)323.886 407 Q F3(term)329.376 402 Q F1 .097(is al)2.597 F -.1(wa)-.1 G .096(ys used.).1 F .096(If the system supports)5.096 F(the)97 414 Q F0 -6.668(TT)3.124 G -3.888(II)6.668 G -7.778(OO)3.888 G -7.218(CC)7.778 G -7.778(GG)7.218 G -9.998(WW)7.778 G-3.888(II)9.998 G -7.218(NN)3.888 G -5.558(SS)7.218 G -6.668(ZZ)5.558 G F3(ioctl\(2\))9.792 E F1 .624(call, it is used to get the number of lines and columns for the terminal,)3.124 F(otherwise it is tak)97 426 Q(en from the)-.1 E F0 -3.328(tt)2.5 G-4.438(ee)3.328 G -4.438(rr)4.438 G -8.328(mm)4.438 G -4.438(cc)8.328 G -4.998(aa)4.438 G -5.558(pp)4.998 G F1(description.)8.058 E F2(insch)72 454.2 Q F1(\()A F3 -.15(ch)C(ar c).15 E F1(\);)A(Insert)97 470.4 Q F3(c)2.67 E F1 .17(at the current \(y)2.67 F 2.5(,x)-.65 G 2.67(\)c)203 470.4 S .169(o-ordinates Each character after it shifts to the right, and the last charac-)213.44 470.4 R(ter disappears.)97 482.4 Q(This returns ERR if it w)5 E(ould cause the screen to scroll ille)-.1 E -.05(ga)-.15 G(lly).05 E(.)-.65 EF2(insertln)72 510.6 Q F1(\(\);)A .801(Insert a line abo)97 526.8 R 1.101 -.15(ve t)-.15 H .801(he current one.).15 F(Ev)5.801 E .801(ery line belo)-.15 F3.301(wt)-.25 G .801(he current line will be shifted do)321.48 526.8 R .802(wn, and the)-.25 F 1.048(bottom line will disappear)97 538.8 R 6.047(.T)-.55 G1.047(he current line will become blank, and the current \(y)218.97 538.8 R 2.5(,x)-.65 G 3.547(\)c)447.693 538.8 S(o-ordinates)459.01 538.8 Q(will remain unchanged.)97 550.8 Q F2(killchar)72 579 Q F1<28293b87>A .711(Returns the line kill character for the terminal,)97 595.2 R F3(i.e)3.212 E(.)-.15 E F1 3.212(,t)C .712(he character used by the user to erase an entire)311.272 595.2 R(line from the input.)97 607.2 Q F2(leaveok)72 635.4 Q F1(\()AF3(WINDO)A(W)-.5 E F4(*)2.5 E F3(win)A F1(,)A F3(int boolf)2.5 E F1<293b87>A.297(Sets the boolean flag for lea)97 651.6 R .297(ving the cursor after the last change.)-.2 F(If)5.297 E F3(boolf)2.796 E F1.296(is non-zero, the cursor will)2.796 F .013(be left after the last update on the terminal, and the current \(y)97 663.6 R2.5(,x)-.65 G 2.514(\)c)351.726 663.6 S .014(o-ordinates for)362.01 663.6 R F3(win)2.514 E F1 .014(will be changed)2.514 F(accordingly)97 675.6 Q 5(.I)-.65 G(f)154.39 675.6 Q F3(boolf)2.5 E F1 .073(is 0 the cursor will be mo)99.5 687.6R -.15(ve)-.15 G 2.573(dt).15 G 2.573(ot)221.091 687.6 S .073(he current \(y)231.444 687.6 R 2.5(,x)-.65 G 2.573(\)c)292.03 687.6 S 2.573(o-ordinates. This)302.373 687.6 R .072(flag \(initially 0\) retains its v)2.573 F(alue)-.25 E(until changed by the user)97 699.6 Q(.)-.55 E EP%%Page: 10 9%%BeginPageSetupBP%%EndPageSetup/F0 10/Times-Bold@0 SF -6.108(PP)72 60 S -5.558(SS)6.108 G -4.998(11)5.558 G-3.328(::)4.998 G -4.998(11)3.328 G -4.998(99)4.998 G -3.328(--)4.998 G -4.998(11)3.328 G 329.472 -4.998(00 S)4.998 H(Sc)-.56 E(cr)442.888 60 Q -.18(re)447.33 60 S(ee)451.592 60 Q(en)456.034 60 Q 2.5(nP)460.476 60 S -.1(Pa)468.53860 S(ac)474.55 60 Q(ck)479.552 60 Q(ka)483.994 60 Q(ag)489.556 60 Q(ge)494.55860 Q(e)499.56 60 Q/F1 10/Courier-Bold@0 SF(move)72 96 Q/F2 10/Times-Roman@0 SF(\()A/F3 10/Times-Italic@0 SF(int y)A F2(,)A F3(int x)2.5 E F2(\);)A .098(Change the current \(y)97 112.2 R 2.5(,x)-.65 G 2.599(\)c)193.564 112.2 S .099(o-ordinates of the windo)203.933 112.2 R 2.599(wt)-.25 G 2.599(o\()314.619112.2 S F3 1.1 -.55(y, x)325.548 112.2 T F2 2.599(\). This).55 F .099(returns ERR if it w)2.599 F .099(ould cause the)-.1 F(screen to scroll ille)97124.2 Q -.05(ga)-.15 G(lly).05 E(.)-.65 E F1(mvcur)72 152.4 Q F2(\()A F3(int lasty)A F2(,)A F3(int lastx)2.5 E F2(,)A F3(int ne)2.5 E(wy)-.15 E F2(,)AF3(int ne)2.5 E(wx)-.15 E F2(\)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -