chiark / gitweb /
Improvements.
authorian <ian>
Fri, 20 Jul 2001 20:30:15 +0000 (20:30 +0000)
committerian <ian>
Fri, 20 Jul 2001 20:30:15 +0000 (20:30 +0000)
config
files/_.configs_setenvir
files/_.configs_xbiffs
files/_.configs_xmodmap-kb=pc
files/_.vtwmrc
gpt

diff --git a/config b/config
index 6c6b6c69f1852436c88d33e58d2364c00c2d4d76..d9d49e651058ab534de54114c0cc2148219bfe81 100644 (file)
--- a/config
+++ b/config
@@ -12,5 +12,6 @@ if ($s =~ m/^Linux$/) {
     }
 }
 
-$ncipher= $hostname =~ m/\.ncipher\.com$/ 
-    || $hostname =~ m/\.ncipherusa\.com$/;
+$ncipher= $hostname =~ m/\.ncipher\.com$/ ? 'cam' :
+          $hostname =~ m/\.ncipherusa\.com$/ ? 'bos' :
+          0;
index a5ce354f8778c7783cd4264fb54acda863ef0683..2580c22b7ee675c675bda081d3d0b9add08c4d95 100755 (executable)
@@ -11,7 +11,8 @@ PATH=$PATH:/opt/bin:/usr/bin/X11
 export PATH
 
 CDPATH=:..:$HOME:$HOME/things
-CVSROOT=:ext:iwj@cvs:/ncipher/local-CVS
+CVS_RSH=ssh
+CVSROOT=:ext:cvs:/ncipher/local-CVS
 EDITOR=emacs
 ESHELL=/usr/bin/bash
 HISTORY=256
@@ -24,8 +25,10 @@ PAGER=less
 PS1="$ "
 TRNINIT=$HOME/.trninit
 WWW_HOME=http://www.chiark.greenend.org.uk/~ijackson/
-export CDPATH CVSROOT EDITOR ESHELL HISTORY HOST LANG LESS
+
+export CDPATH CVS_RSH CVSROOT EDITOR ESHELL HISTORY HOST LANG LESS
 export PAGER PERLLIB PS1 TRNINIT WWW_HOME
+
 # NNTPAUTH
 
 NC_SITES=cam:bos
index 9c4b757f643dc149c27b9f2c296ca803a3b5b77b..d18d6fadcdb22f471ab493d867908346ee88877b 100755 (executable)
@@ -3,7 +3,10 @@
 echo -n @
 
 d="$DISPLAY"
-if [ "x$d" = "x:0.0" ]; then d="$HOSTNAME$DISPLAY"; fi
+if [ "x$d" = "x:0.0" ]; then d="`hostname -f`$DISPLAY"; fi
+@@? $ncipher eq 'bos' ?@@
+rcp .Xauthority dover.ncipher.com:.
+@@;
 
 rsh dover <<END sh
 echo -n @
index 38de9fbe42dd01a5945a1ee9fe78dff386e194e3..74677ef9fc456efc72212fc4324741bb7af2e909 100644 (file)
@@ -7,6 +7,8 @@ keycode 94 = backslash bar
 keycode 103 = Prior
 keycode 99 = End
 keycode 113 = Multi_key
+keycode 64 = Alt_L
+keycode 115 = Alt_L
 
 remove Lock = Caps_Lock
 remove Control = Control_L
@@ -16,3 +18,5 @@ add Lock = Caps_Lock
 add Control = Control_L
 
 clear mod4
+clear mod1
+add mod1 = Alt_L Alt_R
index 0de46279ba0a356a8269c5ae43477707e48405da..65e9e707d3e9ff54b0d04ae3a37a5116609d23eb 100644 (file)
@@ -282,18 +282,40 @@ menu "programs"
 Menu "hosts"
 {
         "Hosts"                f.title
- "Dounreay"    !"remoteshell dounreay &"
- "Dover"       !"remoteshell -rrsh dover &"
- "Titanic"     !"xterm-CT 'titanic rlogin' -e rlogin titanic &"
- "Belgrano"    !"xterm-CT 'belgrano ssh' -e ssh belgrano &"
+@@-
+       sub host {
+               my ($x,$usex,$rsh) = @_;
+               $x =~ m/^(.)(.*)$/;
+               my ($y) = (uc $1).$2;
+               my ($rlss) = $rsh ? 'rlogin' : 'ssh';
+               return " \"$y\"\t\t!\"".
+ ($usex ? "remoteshell ".($rsh?'-rrsh ':'')."$x" :
+       "xterm-CT '$x $rlss' -e $rlss $x"). "\t&\"";
+       }
+@@
+
+@@? $ncipher ?@@
+@@-
+       sub host_nc {
+               my ($x,$h,$rsh) = @_;
+               &host($x, $ncipher eq $h, $rsh);
+       }
+@@
+@@ &host_nc(   'dounreay',     'cam',  0)      @@
+@@ &host_nc(   'dover',        'cam',  1)      @@
+@@ &host(      'titanic',      0,      1)      @@
+@@ &host(      'belgrano',     0,      0)      @@
  ""            f.nop
- "Jura"                !"remoteshell jura &"
- "Islay"       !"remoteshell -rrsh islay &"
- "Keynes"      !"remoteshell -rrsh keynes &"
- "Scarp"       !"remoteshell -rrsh scarp &"
- "Fowey"       !"remoteshell -rrsh fowey &"
- "Ludlow"      !"remoteshell -rrsh ludlow &"
- "Greenock"    !"remoteshell -rrsh greenock &"
+@@ &host_nc(   'jura',         'cam',  0)      @@
+@@ &host_nc(   'viking',       'bos',  0)      @@
+@@ &host_nc(   'islay',        'cam',  0)      @@
+@@ &host_nc(   'keynes',       'cam',  1)      @@
+@@ &host_nc(   'scarp',        'cam',  1)      @@
+@@ &host_nc(   'fowey',        'cam',  1)      @@
+@@ &host_nc(   'ludlow',       'cam',  1)      @@
+@@ &host_nc(   'greenock',     'cam',  1)      @@
+@@;
+
  ""            f.nop
  "Relativity"  !"xterm-CT 'Relativity' -e ssh -p24 r-ian@relativity.dynamic.greenend.org.uk &"
  ""            f.nop
diff --git a/gpt b/gpt
index f16320caa464853689ee842154c95949592222ac..85246507b19249b77b95c185ee7cd52f6e6f1f29 100755 (executable)
--- a/gpt
+++ b/gpt
@@ -89,10 +89,10 @@ sub process_input () {
        print DEBUG "L $fn:$lno:",join('',@oplist),
                    ":`$l' e\`$expr' s\`$substr'\n";
        if (@oplist & 1) { # scanning perl
-           if ($l =~ m/(.)\@\@/m || $l =~ m/^()\@\@/m) {
+           if ($l =~ m/^()\@\@/ || $l =~ m/([^\000])\@\@/) {
                ($to,$op,$esc,$l) = ($`,$1,$&,$');
                add_perl($to);
-               if ($op =~ m/[ 0-9a-zA-Z_\;\)\}?]/ || $op eq '') {
+               if ($op =~ m/[ \t\n0-9a-zA-Z_\;\)\}?]/ || $op eq '') {
                    $top= pop @oplist;
                    if (!@oplist) {
                        # And evaluate.