# To use 'vi' as your text editor, replace 'TextEditor' (the DT # Motif-based text editor) with 'Vi'. ACTION EditText { TYPE MAP MAP_ACTION TextEditor } ACTION TextEditor { TYPE MAP MAP_ACTION NEdit } # To use xterm as your default terminal, replace 'dtterm' with 'Xterm'. ACTION Terminal { TYPE MAP MAP_ACTION XtermPWD } ACTION NewTerminalCd { TYPE MAP MAP_ACTION XtermPWDcd ICON termina } ACTION NewTerminal { TYPE MAP MAP_ACTION Xterm } # The default 'Print' action uses 'pr' to paginate the output. If you # do not want pagination, replace 'PrintFormat' with 'PrintUnformat'. ACTION Print { TYPE MAP MAP_ACTION PrintUnformat } # To use an SPCD-based remote dtterm, replace 'RemoteHptermRlogin' # with 'RemoteHptermSpcd'. ACTION RemoteHpterm { TYPE MAP MAP_ACTION RemoteHptermRlogin } # To use an SPCD-based remote Xterm, replace 'RemoteXtermRlogin' # with 'RemoteXtermSpcd'. ACTION RemoteXterm { TYPE MAP MAP_ACTION RemoteXtermTelnet } # And here's the personalised Xterm... ACTION Xterm { TYPE COMMAND WINDOW_TYPE NO_STDIO # EXEC_STRING tcsh -fc 'exec xterm -fn 6x13 -sl 2000 \ # -T "`whoami`@`hostname`" -n `hostname` \ # `if ( -e $HOME/.xwin ) cat $HOME/.xwin`' EXEC_STRING sh -c 'exec xterm -fn 6x13 -sl 2000 \ -T "`whoami`@`hostname`" -n `hostname` \ `[ -e $HOME/.xwin ] && cat $HOME/.xwin`' DESCRIPTION The Xterm action starts an xterm terminal emulator. ICON xterm-std } ACTION XtermPWD { TYPE COMMAND WINDOW_TYPE NO_STDIO # EXEC_STRING tcsh -fc 'setenv DT true; setenv DT true; \ # source ~/.cshrc; \ # exec xterm -fn 6x13 -sl 2000 \ # -T "`whoami`@`hostname`" -n `hostname` \ # `if ( -e $HOME/.xwin ) cat $HOME/.xwin`' EXEC_STRING sh -c 'DT=true exec xterm -fn 6x13 -sl 2000 \ -T "`whoami`@`hostname`" -n `hostname` \ `[ -e $HOME/.xwin ] && cat $HOME/.xwin`' DESCRIPTION The Xterm action starts an xterm terminal emulator. ICON xterm-std } # ===== Special terminal with CD ============================================== ACTION XtermPWDcd { TYPE COMMAND LABEL XTerm WINDOW_TYPE NO_STDIO ARG_TYPE FOLDER,CURRENT_FOLDER,DOT_FOLDER,FOLDER_LOCK,PARENT_FOLDER # EXEC_STRING tcsh -fc 'setenv DT true; source ~/.cshrc; \ # cd %(File)Arg_1%; \ # exec xterm -fn 6x13 -sl 2000 \ # -T "`whoami`@`hostname`" -n `hostname` \ # `if ( -e $HOME/.xwin ) cat $HOME/.xwin`' EXEC_STRING sh -c 'DT=true; export DT; cd %(File)Arg_1%; \ exec xterm -fn 6x13 -sl 2000 \ -T "`whoami`@`hostname`" -n `hostname` \ `[ -e $HOME/.xwin ] && cat $HOME/.xwin`' ICON xterm-std } ACTION XtermPWDcd { TYPE COMMAND LABEL XTerm WINDOW_TYPE NO_STDIO ARG_TYPE * # EXEC_STRING tcsh -fc 'setenv LINES 66; setenv COLUMNS 80; \ # exec xterm -fn 6x13 -sl 2000 \ # -T "vi %(File)Arg_1%" \ # -n `basename %(File)Arg_1%` \ # -geometry 80x66 \ # -e vi %(File)Arg_1%' EXEC_STRING sh -c 'DT=true LINES=66 COLUMNS=80 \ exec xterm -fn 6x13 -sl 2000 \ -T "vi %(File)Arg_1%" \ -n "`basename %(File)Arg_1%`" \ -geometry 80x66 \ -e vi %(File)Arg_1%' ICON xterm-std } ACTION XtermPWDcd { TYPE COMMAND LABEL XTerm WINDOW_TYPE NO_STDIO ARG_COUNT 0 # EXEC_STRING tcsh -fc 'setenv DT true; source ~/.cshrc; \ # cd; \ # exec xterm -fn 6x13 -sl 2000 \ # -T "`whoami`@`hostname`" -n `hostname` \ # `if ( -e $HOME/.xwin ) cat $HOME/.xwin`' EXEC_STRING bash -c 'DT=true; export DT; cd; \ exec xterm -fn 6x13 -sl 2000 \ -T "`whoami`@`hostname`" -n `hostname` \ `[ -e $HOME/.xwin ] && cat $HOME/.xwin`' ICON xterm-std } # ============================================================================= ACTION RemoteXtermTelnet { TYPE COMMAND WINDOW_TYPE NO_STDIO EXEC_STRING xterm -fn 6x13 -sl 2000 -sb \ -e telnet %"Hostname:"% DESCRIPTION The RemoteXtermRlogin action prompts the user for \ the name of a system and performs a telnet to that \ system. ICON xterm-std }