/usr/openwin/bin/xview/xlsfonts | ce # Will show you the list of system cat /usr/openwin/lib/rgb.txt | ce # fonts and colors The following key definitions can be used to click on font names and colors and see them kd ^F1 tl;dr;tr;xc -l font;tdm;tl;xd -l junk;es 'fl ';xp font;tr;en ke kd ^F2 [,14]dr;tr;xc -l color;tdm;tl;xd -l junk;es 'fgc ';xp color;tr;en ke kd ^F3 [,14]dr;tr;xc -l color;tdm;tl;xd -l junk;es 'bgc ';xp color;tr;en ke
Ce.font : 8x15
ce.font : 6x13
For ceterm and cv, the 8x15 font would be picked up. For ce, the program name would take precedence so the 6x13 font would be used. If you aliased ce to some other name such as pogo with a soft link, you could code pogo.font : 10x20 and when you ran the pogo command, you would run ce and use the 10x20 font. You could also get to the pogo resource by specifying -name pogo as an argument to ce.
unset edit
stty nl
Sometimes, stty nl will mess up the processing of password prompts in ftp and telent. If you encounter this situation, you may want to use the xresource dotmode to adjust how ceterm decides it is processing a password.
set +o vi
set +o viraw
set +o emacs
Note that only some versions of ksh recognize the emacs keyword.
xmodmap -e "remove mod3 = Num_Lock" 2>/dev/console
in your ~/.dtprofile (Sun CDE), ~/.openwin-init (Sun Openwindows), ~/.vueprofile (HP/UX), or .xinitrc (Other X environments). This disables NumLock as a modifier key. It also frees it up as an additional key which you could put key definitions under.
To investigate keyboards, we provide a command called kk. When kk is executed, the next keystroke is not interpreted. Instead the key name of the key is displayed. If you stack two of them as in kk;kk, the next two keys will be displayed. This is useful for looking at the alt(meta) versions of keys. You execute the double kk (can be put under a key) and then press Alt-h. As the alt key is pressed you will see Meta-l or some such appear in the window. While still holding the alt key down you press the h key and you will see that the keysym is '*yen'. The star is for the alt. 10.
Ce.findbrdr: 2
Ce.dfltPasteBuf: PRIMARY
Ce.scroll : no
Setting the findbrdr resource sets the find border. Thus if you do a find, Ce will position the window so that two lines are shown above the line found. Thus you get to see the line in context.
Setting the dfltPasteBuf sets the name of the default (unnamed) paste buffer. HP/VUE applications tend to use primary as the main paste buffer. Using the above setting makes cutting and pasting between Ce and other X applications easier.
The scroll resource determines how ceterm scrolls lines on the screen. In scroll on mode, ceterm emulates the Apollo's and redraws the screen as each line appears. In scroll off mode, if a bunch of lines arrive from the shell together, ceterm displays them all at once.
If you want to scroll through colors set up with the ce 'wdc' command in your .Cekeys file, use X defaults:
Ce.foreground :
Ce.background :
#sample wdf and wdc commands from the .Cekeys file:
wdc 1 cornsilk3 navy
wdc 2 lightblue black
wdc 3 white black
wdc 4 brown wheat
wdc 5 midnightblue wheat
wdc 6 '#6F4EB7' white
wdc 7 '#4B006000E200' white
As root:
chown root ce
chmod 4755 ce
Machines other than SunOS and Apollo have to be setuid'ed to root (as does xterm) because you have to be root to open a pseudo terminal. Pseudo terminals (also called line disciplines) are the piece of the system which sits between a shell and the program or piece of hardware which displays the output from the shell and turns things like ^c into an interrupt.
When Ce starts, it checks to see if it is a ceterm. If not, it drops the setuid immediately. If it is ceterm, it drops the setuid as soon as the pseudo terminal is opened.
If ceterm is being accessed across an NFS mount point, the mount must be checked to make sure that setuid programs operate across the mount point. This is an NFS option.
File locking can be disabled from the command line with the -lockf
option. More commonly it would be disabled through the X resource:
Ce.lockf : N
At some sites, the application defaults for Ce are set to disable
file locking. If the application defaults for Ce are accessed
across the network and a network partition occurs, you may get
this message. You can use this resource in your .Xdefaults file to
locally control file locking.
Note that AGCS application defaults for Ce have file locking turned
off.
There are two ways to add the interactive spell checker to the ce editor.
There are two types of Regular Expressions used with Ce. One is Aegis Regular Expressions and the other is Standard Unix Regular Expressions. To determine which one you use for your ce environment issue the 're' command in the ce 'Command:' input area. Then copy the appropriate definitions to your .Cekeys file and run ce -reload. Depending upon where you put ispell, you may have to adjust the path name to ispell.
# # This key definition works for both Aegis and Unix Regular Expressions # Make <Control>-s invoke the ispell program kd ^s pw;pn;tdmo;tl;dr;tr;xc -l file;tdm;tl;xd -l junk;icon -i;es'cpo -w "xterm -e /usr/local/bin/ispell ';xp file;tr;es'"';en;tmw;1,$xd -l junk;xd -l junk;tdm;es'xp -f ';xp file;tr;en;cpo "xdmc icon" ke # # This defines an alias first and then the key definition # This method allows the user the option of executing the command # from the command line and using a key definition # # Make <Control>-s invoke the ispell program alias ispellx ro -off;pw;pn;tdmo;tl;dr;tr;xc -l file;tdm;tl;xd -l junk;icon -i;es'cpo -w "xterm -e /usr/local/bin/ispell ';xp file;tr;es'"';en;tmw;1,$xd -l junk;xd -l junk;tdm;es'xp -f ';xp file;tr;en;cpo "xdmc icon" ke kd ^s ispellx ke # # This option uses a ceterm window rather than an xterm window # Once again we define an alias first then use the alias as part of the key definition # For Unix Regular expression parsers alias ispell ro -off;pw;pn;tdmo;tl;dr;tr;xc -l file;tdm;tl;xd -l junk;icon -i;es'cpo -w "ceterm -geo c80x24 -autoclose y -vt on -w \\\'/usr/local/bin/ispell ';xp file;tr;es'\\\'"';en;tmw;1,$xd -l junk;xd -l junk;tdm;es'xp -f ';xp file;tr;en;cpo "xdmc icon" ke # Make <diamond key>-s run the ispell alias on the ce file you are editing. # Use either kd `s ispell ke # # For Aegis Regular expression parsers alias ispell ro -off;pw;pn;tdmo;tl;dr;tr;xc -l file;tdm;tl;xd -l junk;icon -i;es'cpo -w "ceterm -geo c80x24 -autoclose y -vt on -w @@'/usr/local/bin/ispell ';xp file;tr;es'@@'"';en;tmw;1,$xd -l junk;xd -l junk;tdm;es'xp -f ';xp file;tr;en;cpo "xdmc icon" ke # Make <diamond key>-s run the ispell alias on the ce file you are editing. # Use either kd `s ispell ke # # # These definition are for use with the release 2.5 of Ce and beyond. # # Make <Control key>-s invoke the ispell program on the ce file you are editing. kd ^s pw;pn;tdmo;tl;dr;tr;xc -l file;tdm;tl;xd -l junk;icon -i;(1050,550);es'cpo -w "xterm -e /usr/local/bin/ispell ';xp file;tr;es'"';tr;en;tmw;1,$xd -l junk;xd -l junk;tdm;es'xp -f ';tr;xp file;tr;en;icon -w ke # # OR you can # # create an alias first alias ispellx ro -off;pw;pn;tdmo;tl;dr;tr;xc -l file;tdm;tl;xd -l junk;icon -i;es'cpo -w "xterm -e /usr/local/bin/ispell ';xp file;tr;es'"';en;tmw;1,$xd -l junk;xd -l junk;tdm;es'xp -f ';xp file;tr;en;icon -w ke # Make <diamond key>-s run the ispell alias on the ce file you are editing. kd `s ispellx ke
To activate command tracing in an existing window, execute the following
command at the 'Command:' prompt:
debug @4
To deactivate command tracing, execute
debug 0
To trace the loading of your .Cekeys file, execute the following at
the UNIX command prompt:
CEDEBUG=@4 ce -reload
Note that on an HP/UX box, @ is often the kill to end of line character. You may have to escape the @ or change your tty settings.
Note that the contents of the debugging messages may change from release to release. You can send command tracing to a file with debug @4>/tmp/file. The @4 represents a bit in the debugging mask. Turning on other bits may produce voluminous output or change the way Ce behaves. If you turn them on ... You get what you get.
The horizontal scroll bar follows the same logic but is slightly more complicated. Ce supports scrolling sideways past the right side of the longest line. Again this requires an extension of scroll bar behavior. To get reasonable horizontal scroll bar behavior, the slider is drawn as if the the longest line in the window is the length of longest line or the value from an arbitrary X resource (default 256 chars) called Ce.scrollBarWidth. See the help on X resource for more information.
mi Help/6 "HTML doc"cps netscape http://hydrogen:8080/projects/ce/html/ ke
The base Netscape product also has command line options which allow specification of a starting page.