---------------HMR's SCreen Editor for UNIX---------------- Ver.5.27: VT-220 (ANSI), HP-Term0, AIXterm, XTerm terminals only (c) H. Rulot-CIUV /1992-2007 Centro de Informatica, Universitat de Valencia Av. Dr. Moliner 50, 46100 Burjasot,Valencia (SPAIN) ----- e-mail: Hector.Rulot@uv.es ---- May 2007 INSTALLATION OF SCE =================== - This is the source release for sce. Sce will compile in almost any UNIX system. - To install sce you need two files: sce Shell script to launch "screun". screun The real program - To build "screun" you compile the source file "screun.c": uncompress screun.c.Z [if you have the compressed version of the source ] cc -O -o screun screun.c Obviously, you can add any optimization or other option suitable for your "C" compiler. - The only configuration needed is done through the following "#defines" found at the beginning of "screun.c". Comment or uncomment as needed. #define SysV /* Define it if your system uses Sys V termio (termio.h) */ #define LINUX /* Define it if your system is Linux */ #define MACOSX /* Defin it if your system is MACOSX */ #define BSD42 /* Define it if your system uses BSD termio (sgtty.h). Not needed for SUNOS4.xx */ /* DON'T define both SysV & BSD42 !! */ #define L_GTIME /* Define it if gtime() argument is of type "time_t", not "long" (AIX, HP-UX, SUNOS4, LINUX ) */ #define HAYSIGW /* Define it if your system signals SIGWINCH (HP-UX 9.0, AIX, SUNOS4, LINUX ) */ - Once generated "screun", install "sce" and "screun" in any directory in PATH accesible by anyone ( usually /usr/local/bin ). You must be superuser for that: cp sce screun /usr/local/bin chmod 755 /usr/local/bin/sce /usr/local/bin/screun ln -s /usr/local/bin/sce /usr/local/bin/see [The "see" command will launch sce in read-only mode. NOTE: Don't define see in Linux: there is already a command with that name!] - Sce will work as it is in any ANSI, HP-Term0, AIXterm or Xterm terminal, provided that your TERM variable is correctly set. The "sce" script calls screun with the appropiate options: case $TERM in *hp* | 300h) exec screun -h $* ;; *vt* ) exec screun -a $* ;; xterm* ) exec screun -x $* ;; aixterm) exec screun -i $* ;; *) echo "Sorry, sce don't knows how to handle this terminal" esac If your $TERM variable is usually set to a value don't considered here, but you knows that your terminal is one of sce supported types, modify the sce script correspondly (see in the example above: I know that 300h IS a HP terminal). - For xterm terminals, you can improve the usability of sce defining most of the editing keys of your keyboard. To do this, place in your .Xdefaults file this resource: XTerm*VT100.Translations: #override \ CtrlUp: string(0x1b) string("[104~") \n\ CtrlDown: string(0x1b) string("[105~") \n\ CtrlPrior:string(0x1b) string("[110~") \n\ CtrlNext:string(0x1b) string("[111~") \n\ CtrlInsert:string(0x1b) string("[106~") \n\ CtrlDelete:string(0x1b) string("[107~") \n\ Shift Tab: string(0x1b) string("[108~") \n\ ShiftBackSpace: string(0x7f) \n\ Delete: string(0x1b) string("[112~") \n\ Home: string(0x1b) string("[102~") \n\ End: string(0x1b) string("[103~")