lib/scripts/isa-xterm
author wenzelm
Tue, 17 Dec 1996 12:53:14 +0100
changeset 2430 7dc83c3d751a
parent 2344 c3e1eaea4418
child 2474 9990f088d7ac
permissions -rwxr-xr-x
now refers to absolute paths of binaries;

#!/bin/bash -norc
#
# $Id$
#
# Isabelle within an xterm.


## diagnostics

function fail()
{
  echo "$1" >&2
  exit 2
}


## main

if [ -z "$ISABELLE_SYMBOLS" -o "$ISABELLE_SYMBOLS" = false ]; then
  exec xterm -T Isabelle -n Isabelle $ISABELLE_INTERFACE_OPTIONS \
    -e $ISABELLE_HOME/bin/isabelle "$@"
else
  $ISABELLE_HOME/bin/isatool installfonts
  exec xterm -T Isabelle -n Isabelle $ISABELLE_INTERFACE_OPTIONS -fn isacr14 \
    -xrm "*fontMenu.Label: Isabelle fonts" \
    -xrm "*fontMenu*font1*Label: Large" \
    -xrm "*VT100*font1: isacb24" \
    -xrm "*fontMenu*font2*Label:" \
    -xrm "*VT100*font2:" \
    -xrm "*fontMenu*font3*Label:" \
    -xrm "*VT100*font3:" \
    -xrm "*fontMenu*font4*Label:" \
    -xrm "*VT100*font4:" \
    -xrm "*fontMenu*font5*Label:" \
    -xrm "*VT100*font5:" \
    -xrm "*fontMenu*font6*Label:" \
    -xrm "*VT100*font6:" \
    -e $ISABELLE_HOME/bin/isabelle -e 'print_mode:=["symbols"];' "$@"
fi