           qe -- UNIX  PE2
           ---------------------

@B qe

    qe O@Ӽҥ PE2 s{As qe ]uO]r Q OƦb P C
    M DOS POAUNIX ShiΡAӥBP Terminal X]
    PC]@Ǳ`Ϊ function ̦nwq Control Key  Meta Key WAH
    KϥΡC

    QE b http://www.cc.ncu.edu.tw/~center5/product/qe/


GBw

    QE OH C++ ygAF
    http://www.cc.ncu.edu.tw/~center5/product/qe/
    U̷s QE {~AzݭnbzWw˦nUCn:

    g++:       GNU C++ Compiler
               ѦҪ              gcc-2.8.1.tar.gz
                                     libstdc++-2.8.1.1.tar.gz
    ncurses:   GNU Curses
               ѦҪ              ncurses-4.2.tar.gz

    N QE Ѷ}Aݬ Makefile O_nק諸aC

    make          --> isĶ
    make install  --> iw


TBҳ]w

    QE bw˫Ob /usr/local/bin UAt~tΪ profile  help
    file OO qe.pro  qe.hlp w˦b /usr/local/etc U

    QE \wqOgb qe.pro ɡAΨϥΪ̮aؿ .qerc ɡCwq
    覡M PE2 D`AЦۦѦ PE2 ϥΤUC

    QE Hm⪺覡ܡAPϥΪ Terminal Cp Linux  FreeBSD
     consoleAxcin  crxvt Ψ䥦䴩m⪺ TerminalCϥ crxvt 
    䥦 color O X term ݭnN TERM ܼƳ] xterm-colorB
    color_xterm  rxvt (UtβP)C]wkO

    setenv TERM xterm-color            -->  csh  tcsh

    TERM=xterm-color                   -->  shBkshBbash
    export TERM

    t~Az]iHQ QE  Command Line optionA TERM ]wAp:

    qe -t xterm-color

    LAoؤ覡bYǥx Work

    iH Shell Scrip ӰAp

    --------------------------------------
    #!/bin/sh

    t=$TERM
    TERM=xterm-color
    export TERM

    qe "$@"

    TERM=$t
    export TERM
    -------------------------------------


|B qe

    qe UCѼƥiѨϥ

      -h    ݬ qe ǰѼ
      -t    ]w Terminal TypeAp qe -t xterm-color
      -p    w profile N ~/.qerc

BBUG

    zo{ QE { BUG ɡA Email  center5@cc.ncu.edu.tw
    HKbU@Ӫ󥿡C

Bprofile e{ɪҳ]w

    SET tC

      set blankcompress on/off  (sɮɭnn space  TAB)
        ibROU [?b] dߥثeAΦbRO{ɭק]w


      set searchcase exact/any  (jMΨNɬO_jpg)
        ibROU [?s] d
        set searchcase exact   jpgϤ
        set searchcase any     jpgϤ

      set big5 on/off/auto      (Tܶ})
        ibROU [?5] d
        set big5 on             T
        set big5 off            ^T
        set big5 auto           ۰ʤ^Ҧ (H LANG ܼƨMwAunO
                                zh_TW }YɡAN]A_h^)

      set history-key none/up/down/both  (ЦbROCɥsXvRO)
        set history-key none    
        set history-key up      VW
        set history-key down    VU
        set history-key both    WBU

      set dir-sort-by name/time/size  (ŪؿɱƧǤ覡)
        set dir-sort-by name    ɦWƧ
        set dir-sort-by time    ɮ׭קƧ
        set dir-sort-by size    ɮפjpƧ


      set ctrl-k on/off
      set ctrl-q on/off
      set ctrl-x on/off

        ] UNIX WiQΪ֫ܦhA] QE \ϥΪ̥H
        Ctrl-K (Ѧ joe  WordStar)  Ctrl-Q (ѦҺ~) 
        Ctrl-X (Ѧ Emacs) ft䥦CftiHO^r
        ƦrAOH k- q- x- ܡCp k-q N Ctrl-K Q
         def k-q = [quit] hiHN QE wqp JOE @몺\A
        n set ctrl-k onA|h ctrl-k 즳\C

        bROndߥثeoǥ\}piOH [?k]B[?q]  [?x]
        dߡA]ib Editing AUקC


    DEF tC

        def  d OOΨөwq䪺OAp:
        def enter=[il][up][fn][down]
        {ɼg]ibROUAiߧYͮ (}ᤣ|QsU)


CBROCO

    1. Ū:         e filename  edit filename

    2. s:         save  (ثe䴩 save filename)

    3. sɨ}:   file

    4. }:         quit  q  [quit]

    5. ɦW:       n filename  name filename

    6. ݥؿ:       dir  dir path
                     dir iHοﰵ cd Ūɪʧ@

    7. Shell:        U shell i{ɸ@ shell XӡAU@ shell RO
                     ̫ exit ^ QE

    8. 渹:   U line 110 i 110 

    9. {ɪ:   @ӨAOOwqb\WA]ibROC
                     UO

   10. {ɩwq:   bROC{ɭקY\䪺wqApN enter 䪺\
                     אּJ@AU@檺}YAiU
                     def enter=[down]
                     t~wq\]iHXөwqA軡A쥻zw
                      Ctrl-Z ӧRAF Ctrl-Z X{
                     key code: [ 26 ] is not definedAhziHU
                     d 26=[dl] ӹFتAoإ\SOAX@ function
                     key: f1 ~ f12, home, end, pgup, pgdn  work ɡC

   11. {ɭק:  set OiקҡApg Makefile @wn
                     set blankcompress on

   12. jM:         l/abc/ B /abc B /abc/  UjM abc rꪺa
                     l/def/- B /def/-        WjM def rꪺa
                     lak/a   B l\k/\         UjM k/ rꪺa
                      ^  ^       ^  ^
                     l/abc/m  B /abc/m       UjMbаOϦ abc rꪺa
                     l/abc/m- B /abc/m-      WjMbаOϦ abc rꪺa

   13. jM/N:    c/abc/def/               UjM abc rאּ def
                     c#ab/#d\b#               UjM ab/ rאּ d\b
                      ^   ^   ^
                     c/abc/def/-              WjM abc rאּ def
                     c/abc/dev/m              UjMаOϦ abc rאּ def
                     c/abc/def/-m             WjMаOϦ abc rאּ def

                     jߨA|X{pUT (oӳM pe2 P)
                     confirm change [y/n/q/a]:
                     Yes    y n changeAMU@
                     No     n AMU@
                     Quit   q A]AF
                     All    a AnAݤF

                     pGQbROCUOӤn@Ӥ@Ӹ߰ݡAhb
                     ̫n[ * Ap:

                     c/abc/def/*


    `N: ثejMOjpO_ϤA searchcase Mw  !!!!


KBw䴩O

    ثew䴩O (WbP PE2 ۮeAUbh QE ۤv)

       O                  Yg            \  ² z
    ---------------------------------------------------------------------
    [backtab word]           [bw]           ^WӦr
    [beep]                   [bp]           oX beep n
    [begin line]             [bl]           檺}Y
    [begin mark]             [bm]            mark Ϫ}Y
    [begin word]             [wb]           r}Y
    [bottom]                 [bo]           ɮת
    [bottom edge]            [be]           ṳ̀U@
    [center line]            [cl]           NЩҦbmվb
    [command toggle]         [cg]           ROϩMưϪ
    [copy from command]      [cf]           NROCƫư
    [copy mark]              [cm]           NаOϪƫЩҦbm
    [copy to command]        [ct]           NЩҦbưϪeROC
    [cursor command]         [cc]           ROC
    [cursor data]            [ca]           ư
    [delete char]            [dc]           R@Ӧr
    [delete line]            [dl]           R@
    [delete mark]            [dm]           RаO
    [down]                   [down]         ЩU@
    [edit]                   [e]            sUɮ
    [end line]               [el]           в@檺̫
    [end mark]               [em]           ваOϪ̫
    [end word]               [we]           вr
    [erase begin line]       [eb]           RХH᪺
    [erase end line]         [ee]           RХHe
    [execute]                [ex]           ROCRO
    [fill mark]              [fm]           NаO϶J@Ӧr
    [first nonblank]         [fn]           ЩҦbĤ@ӫDťժr
    [insert line]            [il]           J@
    [insert mode]            [im]           JҦJҦ
    [insert toggle]          [it]           JҦ
    [join]                   [jo]           NU@汵쥻᭱
    [left]                   [left]         Щ@
    [lowercase]              [lc]           NаOϪҦrনpg
    [mark block]             [mb]            block ΦаO
    [mark line]              [ml]           ΦаO
    [move mark]              [mm]           hʼаOϦܴЦm
    [overlay block]          [ob]           νƻ\覡ƻs block ΦаO
    [page down]              [pd]           U@
    [page up]                [pu]           W@
    [pop mark]               [po]           q|XаO
    [push mark]              [ps]           NаOϩi|
    [replace mode]           [rm]           JҦNҦ
    [right]                  [right]        Щk@
    [rubout]                 [ro]           RЫe@Ӧr
    [scrolldown]             [scrolldown]   ùW
    [scrollup]               [scrollup]     ùU
    [scrollleft]             [scrollleft]   ù
    [scrollright]            [scrollright]  ùk
    [shift left]             [sl]           NаOϸƩ@
    [shift right]            [sr]           NаOϸƩk@
    [split]                  [sp]           NЫ᪺ƲU@
    [tab]                    [tb]           UөwI
    [tab word]               [tw]           U@Ӧr
    [top]                    [to]           ɮת}Y
    [top edge]               [te]           ṳ̀W@
    [undo]                   [ud]           ٭~J
    [unmark]                 [um]           аO
    [up]                     [up]           ЩW@
    [uppercase]              [uc]           NаOϪҦrনjg
                             [?b]           d blankcompress A
                             [?s]           d searchcase A
    [quit]                   [quit]         }(xs)
    [clear marks]            [ck]           MаO|
    ---------------------------------------------------------------------
    [kill line]              [kl]         RЫ᪺ơAYФwb̫
                                          hNU@汵W
    [search]                 [search]     QE ΦƷjM
    [menu]                   [menu]       UԦ\
    [history]                [history]    sXROCvO
    [quit all]               [quit all]   Ҧ(߰ݡB]xs)X QE
    [file all]               [file all]   xsҦQʪɮסA}
                             [?k]         d Ctrl-K A
                             [?q]         d Ctrl-Q A
                             [?x]         d Ctrl-X A
                             [?5]         dߤT}

    ---------------------------------------------------------------------------
    following Porting by Lechee.Lai

    [next word]              [nw]         move cursor to next word
    [mark word]              [mark word]  Mark word under cursor and transation in global for [search]
    [search2]                [search2]    search base on search without wapped
    [isearch]                [isearch]    Incremental Search
    [set0]                   [set0]       Drop Anchor 0
    [set1]                   [set1]       Drop Anchor 0
    [set2]                   [set2]       Drop Anchor 0
    [go0]                    [go0]        Go Anchor 0
    [go1]                    [go1]        Go Anchor 1
    [go2]                    [go2]        Go Anchor 2
    [goto line]              [goto line]  Jump cursor to the specified line number

    set insert-mode          on/off


    misc macro

    def x-x = [mark word][search2][unmark]               ;*  search pattern under cursor
    def x-x = [up][mb][down][cm][unmark][right]          ;*  duplicat upper line charactor for current line
    def x-x = [set0][unmark][mark block][nw]+            ;*  Deletes the "word" to the right of the cursor
              [mark block][delete mark][go0
    def x-x = [bl]'//'[down                              ;*  Add C comment in begin of line
    ---------------------------------------------------------------------------

EB|䴩 PE2 

    [backtab]
    [center in margins]
    [clear message]
    [demo end]
    [demo fast]
    [demo slow]
    [escape]
    [left edge]
    [left margin]
    [mark char]
    [next view]
    [next window]
    [paragraph margin]
    [print]
    [print mark]
    [redraw]
    [reflow]
    [right edge]
    [right margin]
    [split screen]
    [zoom window]
