home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simtel MSDOS 1992 September
/
Simtel20_Sept92.cdr
/
msdos
/
editor
/
ws_train.arc
/
EX1.WS
< prev
next >
Wrap
Text File
|
1986-10-04
|
6KB
|
139 lines
EXERCISE 1: CURSOR MOVEMENT AND SCROLLING
T∩ makσ additions¼ deletions¼ anΣ othe≥ correction≤ t∩ ß ì
document¼ yo⌡ mus⌠ learε ho≈ t∩ movσ thσ displa∙ screeε anΣ thσ ì
cursor« Iµ therσ i≤ ß largσ documen⌠ iε memory¼ onl∙ ß portioε ì
wil∞ fi⌠ oε thσ screeε a⌠ onσ time« Yo⌡ caε thinδ oµ thσ displa∙ ì
a≤ ß "window,ó whicΦ caε bσ moveΣ arounΣ oε thσ document:
__________________
| | Large Document
| |<--------
| ________________ |
Movable || ||
Display --------->| ||
"Window" ||________________||
| |
| |
| |
|__________________|
Hi⌠ thσ "PgDnó ke∙ (lowe≥ right)¼ wheε yo⌡ arσ read∙ t∩ continue.
SCROLLING
Wheε yo⌡ hi⌠ "PgDn¼" thσ displa∙ appeareΣ t∩ movσ down¼ (o≥ ì
alternatively¼ thσ documen⌠ shifteΣ up)« Thi≤ sor⌠ oµ movemen⌠ ì
oµ thσ displa∙ "windowó ove≥ you≥ documen⌠ i≤ calleΣ "scrolling.ó ì
A⌠ thi≤ point¼ usσ thσ "PgUpó anΣ "PgDnó key≤ t∩ scrol∞ t∩ thσ ì
enΣ oµ thi≤ documen⌠ anΣ theε bacδ t∩ thi≤ point¼ s∩ wσ yo⌡ caε ì
continuσ thσ exercise«
Exactl∙ ho≈ fa≥ d∩ thσ "PgUpó anΣ "PgDnó command≤ movσ thσ ì
screen┐ (1).
CURSOR CONTROL
Oncσ yo⌡ havσ thσ displa∙ positioneΣ wherσ yo⌡ wan⌠ it¼ yo⌡ ì
wil∞ havσ t∩ bσ ablσ t∩ movσ thσ curso≥ arounΣ oε thσ screen« ì
Thσ mos⌠ importan⌠ curso≥ contro∞ key≤ arσ thσ arro≈ key≤ a⌠ thσ ì
righ⌠ oµ thσ keyboard¼ thσ "Homeó key¼ anΣ thσ "Endó key.
Tr∙ thσ up- anΣ down-arro≈ key≤ out« Wha⌠ happen≤ wheε the∙ ì
comσ t∩ thσ to≡ o≥ bottoφ oµ thσ screen┐ (2)
Pu⌠ thσ curso≥ a⌠ thσ "Pó a⌠ thσ beginninτ oµ thi≤ line« ì
No≈ movσ i⌠ t∩ thσ right¼ usinτ thσ righ⌠-arro≈ key« Wha⌠ ì
happens when it comes to the end of the line? (3)
Pu⌠ thσ curso≥ a⌠ thσ enΣ oµ thσ las⌠ paragrapΦ anΣ movσ i⌠ ì
t∩ thσ left¼ usinτ thσ left-arro≈ key« Wha⌠ happen≤ wheε i⌠ ì
comes to the left margin? (4)
Nex⌠ tr∙ thσ Homσ anΣ EnΣ keys« WoulΣ yo⌡ sa∙ tha⌠ "Homeó ì
anΣ "Endó arσ scrollinτ o≥ curso≥ movemen⌠ commands┐ (5)è
No≈ let'≤ tr∙ somethinτ trick∙ -- first¼ movσ thσ curso≥ t∩ ì
thσ "Xó oε thσ followinτ line:
X
Wha⌠ happen≤ wheε yo⌡ movσ thσ curso≥ u≡ o≥ dowε froφ thσ ì
"X?" (6)
B∙ thσ way¼ diΣ yo⌡ noticσ thσ dotteΣ linσ tha⌠ appear≤ ß ì
fe≈ line≤ u≡ froφ here┐ Tha⌠ signifie≤ ß pagσ break« Thi≤ tex⌠ ì
i≤ oε pagσ tw∩ oµ thσ document« Ho≈ elsσ coulΣ yo⌡ kno≈ tha⌠ ì
thi≤ tex⌠ i≤ oε thσ seconΣ page? (7)
GOING FASTER
I⌠ turn≤ ou⌠ tha⌠ therσ arσ faste≥ way≤ t∩ movσ thσ curso≥ ì
anΣ t∩ scrol∞ thσ screen« Fo≥ instance¼ thσ curso≥ contro∞ key≤ ì
movσ thσ curso≥ onσ characte≥ a⌠ ß time¼ bu⌠ therσ arσ othe≥ ì
command≤ fo≥ movinτ i⌠ faster«
Placσ thσ curso≥ oε thi≤ "Xó theε holΣ dowε thσ contro∞ ke∙ ì
anΣ hi⌠ thσ "fó ke∙ ß fe≈ times« Wha⌠ doe≤ hittinτ Ctrl-µ do┐ ì
(8⌐ Tr∙ Ctrl-a« Wha⌠ doe≤ i⌠ do┐ (9)
Let'≤ learε tw∩ morσ quicδ scrollinτ commands« Thesσ arσ ß ì
littlσ tricky¼ becausσ yo⌡ havσ t∩ holΣ dowε thσ contro∞ ke∙ anΣ ì
hi⌠ tw∩ other key≤ iε succession«
Thσ firs⌠ i≤ Ctrl-q-c¼ whicΦ i≤ thσ commanΣ fo≥ scrollinτ t∩ ì
thσ beginninτ oµ thσ document« I⌠ i≤ ß littlσ strangσ t∩ hi⌠ s∩ ì
man∙ key≤ anΣ iµ yo⌡ pausσ fo≥ ß whilσ betweeε thσ "qó anΣ thσ ì
"có thσ systeφ wil∞ hel≡ yo⌡ ou⌠ witΦ ß men⌡ oµ choices« Okay¼ ì
no≈ tr∙ Ctrl-q-π, then return to this point.
Thσ fina∞ scrollinτ commanΣ i≤ Ctrl-q-r« Afte≥ yo⌡ tr∙ it¼ ì
movσ thσ curso≥ bacδ t∩ thi≤ paragraph« Wha⌠ diΣ thσ Ctrl-q-π ì
anΣ Ctrl-q-≥ command≤ do? (10)
Tr∙ pausinτ fo≥ ß fe≈ second≤ betweeε thσ "qó anΣ thσ "có o≥ ì
"ró when you give these commands. What happened? (11)
FUNCTION KEYS
Hittinτ functioε ke∙ ╣ i≤ thσ samσ a≤ hittinτ Ctrl-q-≥ anΣ ì
functioε ke∙ 1░ i≤ equivalen⌠ t∩ Ctrl-q-c« Tr∙ theφ ou⌠ (yo⌡ caε ì
eveε seσ thσ Ctrl-q-≥ o≥ π flasΦ briefl∙ iε thσ uppe≥ lef⌠ oµ thσ ì
screen)« Usinτ thσ functioε key≤ i≤ easie≥ thaε thσ contro∞ ì
sequence¼ bu⌠ ╔ wanteΣ yo⌡ t∩ seσ ho≈ botΦ worked.
Therσ arσ othe≥ command≤ fo≥ scrollinτ anΣ movinτ thσ curso≥ ì
withiε thσ tex⌠ "window,ó bu⌠ the∙ wil∞ no⌠ bσ covereΣ iε thi≤ ì
exercise¼ sincσ thesσ arσ plent∙ t∩ ge⌠ started« Iε fact¼ ╔ ì
seldoφ usσ an∙ oµ thσ others« Yo⌡ caε checδ thσ referencσ carΣ ì
o≥ hel≡ screen≤ t∩ seσ wha⌠ the∙ are.è
Onσ las⌠ thinτ -- Wha⌠ happen≤ t∩ thσ curso≥ contro∞ key≤ iµ ì
yo⌡ hi⌠ thσ "NumLockó key┐ (12⌐ Tr∙ i⌠ out¼ s∩ yo⌡ won'⌠ bσ ì
confuseΣ iµ i⌠ happen≤ accidentally.
RECAPPING
Iε thi≤ exercise¼ yo⌡ havσ learneΣ ho≈ t∩ navigatσ withiε ì
you≥ document« (Thσ nex⌠ exercisσ wil∞ sho≈ yo⌡ ho≈ t∩ changσ ì
it). The following command keys were covered:
Cursor movement: Scrolling:
Up arrow PgUp
áááááDown arrow PgDn
áááááLeft arrow Ctrl-q-c (or FN10)
áááááright arrow Ctrl-q-r (or FN9)
ctrl-f
ctrl-a
áááááHome
áááááEnd
Beforσ goinτ on¼ bσ surσ yo⌡ understanΣ wha⌠ eacΦ oµ theφ ì
does.
EXITING
Wheε yo⌡ ge⌠ thi≤ far¼ anΣ arσ read∙ t∩ enΣ thσ exercise¼ ì
givσ thσ abandon-edi⌠ command¼ Ctrl-k-q« Thσ prograφ ma∙ asδ yo⌡ ì
iµ yo⌡ arσ surσ yo⌡ wan⌠ t∩ abandoε thσ editeΣ versioε oµ thi≤ ì
file╗ jus⌠ tel∞ i⌠ tha⌠ yo⌡ are¼ b∙ enterinτ ß "y."