PDP-6 TECO u = DECtape number o,v = optional DECtape number nm, qp = file name uEC copy directory from core to tape u,vEC copy directory from tape v to tape u u,0EC write empty directory to tape u oEDnm delete from directory in core (needs EC) oEFnm write output since last EI or EF to file (implies EC) oEI prepare to output oEL list directory uEK delete directory from core oENnm$qp rename file (needs EC) oERnm prepare to read uET load directory from tape to core (automatic when needed) o|U display directory on scope |Q prepare to read from DECtape |S prepare to read from paper tape |C clear paper tape reader buffer Y kill buffer, read new page A append page to buffer Itext$ insert text into buffer ^Ijtextj insert text between delimiters nI insert char with ascii value n |W turn on DECtape output |V turn off DECtape output |R turn on paper tape output |T turn off paper tape output |E turn on line printer output |B turn off line printer output nV display n lines i,jV display chars i-j n|N set number of automatic lines n|D set display size VW like V, but wait for user input, return pressed char nT type n lines i,jT type chars i-j PW output buffer P output buffer, clear (= PWY) nP do P n times i,jP output chars i-j, don't change buffer nF feed n chars of blank paper tape nJ move pointer to the n character J = 0J nC move n chars (+ right, - left) nR = -nC nL move over n lines (+ down, - up) nD delete n chars (+ right, - left) nK like nL but delete i,jK delete i-j n= type out n nUi put number n into Q-reg i Qi value of Q-reg i %i increment Q-reg i nXi put n lines into Q-reg i m,nXi put chars m-n into Q-reg i Gi insert chars from Q-reg i n; n < 0: nothing. else move past matching > nA value of ASCII char n places right of the pointer !tag! define tag 0tag$ go to tag n"G,L,N,E,C go to matching ' if condition false ITS TECO $ once to terminate command again to send off whole command line ^L refresh screen ERfilename open for reading EI open standard TECO output EEfilename write rest of file to output and rename to filename; close files Y kill buffer and load next page nJ put pointer after nth char in buffer nL put pointer at beginning of nth line after current nC move the pointer right n chars nR move the pointer left n chars nD delete next n chars m,nK kill chars nK kill to end of nth line after pointer append L to move, K to kill, etc. nFW move forward to end of nth word -nFW move back to beginning of nth word n:FW move to beginning of n-1th word DEC TECO ERfile open file for read EBfile open file for read, temp output, rename EWfile open file for write EF end file EX 1000000PEF