Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!mcvax!dutrun!dutesta!karel From: karel@dutesta.UUCP (Karel van Houten) Newsgroups: comp.unix.questions Subject: Re: VI questions Message-ID: <1030@dutesta.UUCP> Date: Mon, 5-Oct-87 04:08:29 EDT Article-I.D.: dutesta.1030 Posted: Mon Oct 5 04:08:29 1987 Date-Received: Thu, 8-Oct-87 01:33:08 EDT References: <5016@utah-cs.UUCP> <221@stag.UUCP> <3050@uwmcsd1.UUCP> Reply-To: karel@dutesta.UUCP (Karel van Houten) Organization: Delft University of Technology, Dep. of Electrotechnical engineering. Lines: 30 Keywords: VI, Bells In article <3050@uwmcsd1.UUCP> zhao@csd4.milw.wisc.edu.UUCP (T.C. Zhao) writes: > >2. I remember a while back someone mentioned ' visual bells' in Vi, >that is instead of a bell the screen flashes should an error occur. >Can someone tell me how to do this ? This has to be defined in the TERMCAP (file or environment variable). Below is my entry for a CIT101 terminal. When you want to put these commands in a file, don't forget you must use 'source file...', otherwise the environment of the subshell will be set only. Please note the 'vb' entry, This will reverse the screen, send some NULLs, and reverse it again. setenv TERM cit101n setenv TERMCAP 'd1|cit101n:al=\E[L:\ :am:bs:cd=\E[J:ce=\E[K:cl=\E[H\E[J:cm=\E[%i%d;%dH:co#80:\ :cs=\E[%i%d;%dr:dc=\E[P:dl=\E[M:ei=:ic=\E[@:im=:kd=\E[B:\ :kl=\E[D:kr=\E[C:ku=\E[A:li#24:nd=\E[C:pt:se=\E[m:so=\E[1m:\ :ue=\E[m:up=\E[A:us=\E[4m:\ :vb=\E[?5h\200\200\200\200\200\200\200\200\200\200\200\200\E[?5l:\ :xn:xv:k0=\EOP:k1=\EOQ:k2=\EOR:k3=\EOS:k4=\EOw:k5=\EOx:k6=\EOy:\ :k7=\EOm:k8=\EOt:k9=\EOu:l0=PF1:l1=PF2:l2=PF3:l3=PF4:sf=\ED:\ :sr=\EM:vs=\E[5v\E\=:ve=\E[4v\E>' -- Karel van Houten BITNET : NO! NO! NO! Delft University of Technology INTERNET : karel@dutesta.UUCP Faculty of Electrical Engineering UUCP : ..!mcvax!dutrun!dutesta!karel Room 9.29H, Mekelweg 4 SURFnet : DUTRUN::KAREL 2628 CD DELFT, The Netherlands VOICE : +31 15 783502