home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Professional / OS2PRO194.ISO / os2 / editor / elvis / question.doc < prev    next >
Text File  |  1994-01-30  |  11KB  |  265 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7. _1_3.  _Q_U_E_S_T_I_O_N_S & _A_N_S_W_E_R_S
  8.  
  9.  
  10. 1111)))) HHHHoooowwww ccccaaaannnn IIII mmmmaaaakkkkeeee eeeellllvvvviiiissss rrrruuuunnnn ffffaaaasssstttteeeerrrr uuuunnnnddddeeeerrrr DDDDOOOOSSSS????
  11.  
  12.        There are several things you can do.  The first thing
  13.        to  do is get a good screen driver such as NANSI.SYS.
  14.        This can speed up screen redrawing by as  much  as  a
  15.        factor of eight!  The DOS-specific part of section 12
  16.        tells you how to do this.
  17.  
  18.        You might also consider  reducing  the  size  of  the
  19.        blocks  that  elvis  uses.   You'll need to recompile
  20.        Elvis to do this.  The default BLKSIZE is  1024  byte
  21.        for  the  DOS  version of Elvis, which means that for
  22.        each keystroke that you insert, elvis must  shift  an
  23.        average of about 500 bytes.  That's a lot to ask from
  24.        a little old 5MHz 8088.  A BLKSIZE of 512 bytes might
  25.        be more appropriate.
  26.  
  27.        If you're _r_e_a_l_l_y desperate for more speed, you  might
  28.        want to make Elvis store its temporary files on a RAM
  29.        disk.  However, this limits the size of the file  you
  30.        can  edit,  and it eliminates any chance you may have
  31.        had to recover your work after  a  power  failure  or
  32.        system  crash,  but it might be worth it; you decide.
  33.        To do this, add ":set dir=R:\" (or whatever your  RAM
  34.        disk's name is) to the _e_l_v_i_s._r_c file.
  35.  
  36.        Next, consider turning off the "sync"  option.   When
  37.        the  sync  option  is turned on, Elvis will close the
  38.        temporary file and reopen it after every  change,  in
  39.        order  to  force  DOS  to update the file's directory
  40.        entry.  If you put ":set nosync"  into  the  _e_l_v_i_s._r_c
  41.        file,  then  elvis  will only close the file when you
  42.        start editing a different text file, or  when  you're
  43.        exiting Elvis.  Consequently, there is no chance that
  44.        you'll be able to recover your changes after a  power
  45.        failure... so if you're going to this, then you might
  46.        as well store the temp files on the RAM disk, too.
  47.  
  48.  
  49. 2222)))) WWWWhhhheeeerrrreeee''''ssss tttthhhheeee <<<<EEEEsssscccc>>>> kkkkeeeeyyyy oooonnnn aaaa DDDDEEEECCCC kkkkeeeeyyyybbbbooooaaaarrrrdddd????
  50.  
  51.        I don't know.  Maybe the <F11> key?  You could always
  52.        use ":map!" to make some other key act like the <Esc>
  53.        key.  If all else fails, use <Control><[>.
  54.  
  55.  
  56. 3333)))) IIIIssss tttthhhheeeerrrreeee aaaa wwwwaaaayyyy ttttoooo sssshhhhoooowwww wwwwhhhhiiiicccchhhh kkkkeeeeyyyyssss ddddoooo wwwwhhhhaaaatttt????
  57.  
  58.        Yes.  The command ":map" will show what each key does
  59.        in  command  mode,  and  ":map!" (with an exclamation
  60.        mark) shows what each key does in input mode.
  61.  
  62.  
  63.  
  64.                        June 13, 1992
  65.  
  66.  
  67.  
  68.  
  69.  
  70. 13-2                QUESTIONS & ANSWERS                 13-2
  71.  
  72.  
  73.        The table is divided into three  columns:  the  key's
  74.        label,  the characters that it sends, and the charac-
  75.        ters that Elvis pretends you typed.
  76.  
  77.  
  78. 4444)))) HHHHoooowwww ccccaaaannnn IIII mmmmaaaakkkkeeee EEEEllllvvvviiiissss ddddiiiissssppppllllaaaayyyy lllloooonnnngggg lllliiiinnnneeeessss lllliiiikkkkeeee tttthhhheeee rrrreeeeaaaallll vvvviiii????
  79.  
  80.        You can't yet.  The next version of Elvis  shouldsup-
  81.        port this, though.
  82.  
  83.  
  84. 5555)))) IIII ccccaaaannnn''''tttt rrrreeeeccccoooovvvveeeerrrr mmmmyyyy tttteeeexxxxtttt  [[[[uuuunnnnddddeeeerrrr  MMMMSSSS----DDDDOOOOSSSS  oooorrrr  AAAAttttaaaarrrriiii  TTTTOOOOSSSS]]]]....
  85.    AAAAccccccccoooorrrrddddiiiinnnngggg ttttoooo tttthhhheeee ddddiiiirrrreeeeccccttttoooorrrryyyy lllliiiissssttttiiiinnnngggg,,,, tttthhhheeee tttteeeemmmmppppoooorrrraaaarrrryyyy ffffiiiilllleeee iiiissss
  86.    0000 bbbbyyyytttteeeessss lllloooonnnngggg....  WWWWhhhhaaaatttt wwwweeeennnntttt wwwwrrrroooonnnngggg????
  87.  
  88.        MS-DOS and TOS only update a file's  directory  entry
  89.        when the file is closed.  If the system crashes while
  90.        the file is still open, then  the  file's  length  is
  91.        stored  as  0  bytes.  The ":set sync" option is sup-
  92.        posed to prevent this; you probably turned it off  in
  93.        the interest of speed, right?
  94.  
  95.        Under MS-DOS [I don't know  about  TOS],  you  should
  96.        delete   the  empty  temporary  file,  and  then  run
  97.        CHKDSK/F.  This _m_i_g_h_t find the data that belonged  in
  98.        the  empty  file,  and  place it in a new file with a
  99.        name like "000001.CHK" -- something like  that.   You
  100.        can  then try to extract the text from that temporary
  101.        file by giving the  command  "elvprsv  -R  000001.chk
  102.        >goodnews.txt".   If  you're  lucky,  then  your text
  103.        might be in GOODNEWS.TXT.
  104.  
  105.  
  106. 6666)))) WWWWhhhhaaaatttt iiiissss tttthhhheeee mmmmoooosssstttt ccccuuuurrrrrrrreeeennnntttt vvvveeeerrrrssssiiiioooonnnn ooooffff EEEEllllvvvviiiissss????
  107.  
  108.        Each version of Elvis that is released to the  public
  109.        has  a  version  number  of  the  form  "number point
  110.        number".  As I write this, the most  current  version
  111.        of elvis is 1.6.
  112.  
  113.        The intermediate steps between one  release  and  the
  114.        next are labeled with the _n_e_x_t version number, with a
  115.        letter  appended.   For  example,   after   1.4   was
  116.        released,  I started working on 1.5a.  I am currently
  117.        working on 2.0a.  When Elvis reaches a stable  state,
  118.        I'll call it 2.0 and release it.
  119.  
  120.        Sometimes a beta-test version of elvis will be avail-
  121.        able  via  anonymous FTP from m2xenix.psg.com, in the
  122.        directory "pub/elvis/beta".
  123.  
  124.  
  125. 7777)))) IIII oooonnnnllllyyyy ggggooootttt eeeexxxxeeeeccccuuuuttttaaaabbbblllleeeessss,,,, bbbbuuuutttt nnnnoooowwww IIII wwwwaaaannnntttt tttthhhheeee  ssssoooouuuurrrrcccceeee  ccccooooddddeeee....
  126.    WWWWhhhheeeerrrreeee ccccaaaannnn IIII ggggeeeetttt iiiitttt????
  127.  
  128.  
  129.  
  130.                        June 13, 1992
  131.  
  132.  
  133.  
  134.  
  135.  
  136. 13-3                QUESTIONS & ANSWERS                 13-3
  137.  
  138.  
  139.        If you have access to the Internet, then  you  should
  140.        be  able  to fetch it from one of the public archives
  141.        such  as  ppppllllaaaaiiiinnnnssss....nnnnooooddddaaaakkkk....eeeedddduuuu.   It  is  accessible  via
  142.        anonymous   FTP,   or   via  an  email  server  named
  143.        "archive-server@plains.nodak.edu".  Elvis is  located
  144.        in the directory "/pub/Minix/all.contrib".
  145.  
  146.        I will also offer it to the  C  Users'  Group.   They
  147.        sell C source code for us$8 per diskette (or slightly
  148.        more outside  North  America).  Their phone number is
  149.        (913) 841-1631, and their address is:
  150.  
  151.                The C Users' Group
  152.                PO Box 3127
  153.                Lawrence KS 66046-0127
  154.  
  155.  
  156.  
  157. 8888)))) IIIIssss tttthhhhiiiissss sssshhhhaaaarrrreeeewwwwaaaarrrreeee,,,, oooorrrr ppppuuuubbbblllliiiicccc ddddoooommmmaaaaiiiinnnn,,,, oooorrrr wwwwhhhhaaaatttt????
  158.  
  159.        It is not public domain; it  is  copyrighted  by  me,
  160.        Steve  Kirkendall.   However, this particular version
  161.        is freely redistributable, in either source  form  or
  162.        executable  form.   (I  would  prefer  that  you give
  163.        copies away for free, complete with the  full  source
  164.        code... but I'm not going to force you.)
  165.  
  166.        It is not shareware; you aren't expected to  send  me
  167.        anything.  You can use it without guilt.
  168.  
  169.        It is not "copylefted."   I  hold  a  copyright,  but
  170.        currently  I have not added any of the usual restric-
  171.        tions that you would find on copylefted software.  If
  172.        people  start doing really obnoxious things to Elvis,
  173.        then I will start adding restrictions  to  subsequent
  174.        versions,  but  earlier  versions  won't be affected.
  175.        (So far, everybody has been pretty good about this so
  176.        no restrictions have been necessary.)
  177.  
  178.  
  179. 9999)))) CCCCaaaannnn IIII rrrreeeeuuuusssseeee ppppaaaarrrrttttssss ooooffff yyyyoooouuuurrrr ssssoooouuuurrrrcccceeee ccccooooddddeeee????
  180.  
  181.        Yes.  Please be careful, though, to  make  sure  that
  182.        the  code  really is mine.  Some of the code was con-
  183.        tributed by  other  people,  and  I  don't  have  the
  184.        authority  to  give  you  permission  to use it.  The
  185.        author's name can be  found  near  the  top  of  each
  186.        source  file.  If it says "Steve Kirkendall" then you
  187.        may use  it;  otherwise,  you'd  better  contact  the
  188.        author first.
  189.  
  190.        Please don't remove my name from the source code.  If
  191.        you  modify  the  source,  please make a note of that
  192.        fact in a comment near the top of  the  source  code.
  193.  
  194.  
  195.  
  196.                        June 13, 1992
  197.  
  198.  
  199.  
  200.  
  201.  
  202. 13-4                QUESTIONS & ANSWERS                 13-4
  203.  
  204.  
  205.        And, finally, please mention my name in your documen-
  206.        tation.
  207.  
  208.  
  209. 11110000))))CCCCaaaannnn EEEEllllvvvviiiissss wwwwoooorrrrkkkk wwwwiiiitttthhhh nnnnoooonnnn----AAAASSSSCCCCIIIIIIII ffffiiiilllleeeessss????
  210.  
  211.        Elvis can't edit binary files because it can't handle
  212.        the NUL character, and because of line-length limita-
  213.        tions.  However, it is 8-bit clean so you  should  be
  214.        able to edit any European extended ASCII file without
  215.        any surprises.
  216.  
  217.        Elvis has also been  modified  to  work  with  16-bit
  218.        character  sets.  Yongguang Zhang (ygz@cs.purdue.edu)
  219.        has created a Chinese version of Elvis that uses  16-
  220.        bit characters and runs under cxterm (Chinese X-term)
  221.        on     X-windows     systems.      Junichiro     Itoh
  222.        (itojun@foretune.co.jp)  has  modified  Elvis to edit
  223.        Japanese text under MS-DOS.
  224.  
  225.  
  226.  
  227.  
  228.  
  229.  
  230.  
  231.  
  232.  
  233.  
  234.  
  235.  
  236.  
  237.  
  238.  
  239.  
  240.  
  241.  
  242.  
  243.  
  244.  
  245.  
  246.  
  247.  
  248.  
  249.  
  250.  
  251.  
  252.  
  253.  
  254.  
  255.  
  256.  
  257.  
  258.  
  259.  
  260.  
  261.  
  262.                        June 13, 1992
  263.  
  264.  
  265.