summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
Diffstat (limited to 'etc')
-rw-r--r--etc/etcscreenrc95
-rwxr-xr-xetc/mkinstalldirs35
-rwxr-xr-xetc/newsyntax64
-rw-r--r--etc/screenrc124
-rwxr-xr-xetc/toolcheck44
5 files changed, 362 insertions, 0 deletions
diff --git a/etc/etcscreenrc b/etc/etcscreenrc
new file mode 100644
index 0000000..301d6b9
--- /dev/null
+++ b/etc/etcscreenrc
@@ -0,0 +1,95 @@
+#3.3
+# This is a global screenrc file
+# Install this file as /usr/local/etc/screenrc. See config.h
+#
+# Flaws of termcap and standard settings are done here.
+# Note: This file should not be shared between different hosts.
+# The 'termcap' lines are written in termcap syntax.
+# The syntax for a terminfo based host is slightly different.
+#
+
+#startup_message off
+
+#defflow on # will force screen to process ^S/^Q
+
+deflogin on
+#autodetach off
+
+vbell on
+vbell_msg " Wuff ---- Wuff!! "
+
+# all termcap entries are now duplicated as terminfo entries.
+# only difference should be the slightly modified syntax, and check for
+# terminfo entries, that are already corected in the database.
+#
+# G0 we have a SEMI-GRAPHICS-CHARACTER-MODE
+# WS this sequence resizes our window.
+# cs this sequence changes the scrollregion
+# hs@ we have no hardware statusline. screen will only believe that
+# there is a hardware status line if hs,ts,fs,ds are all set.
+# ts to statusline
+# fs from statusline
+# ds delete statusline
+# al add one line
+# AL add multiple lines
+# dl delete one line
+# DL delete multiple lines
+# ic insert one char (space)
+# IC insert multiple chars
+# nx terminal uses xon/xoff
+
+termcap facit|vt100|xterm LP:G0
+terminfo facit|vt100|xterm LP:G0
+
+#the vt100 description does not mention "dl". *sigh*
+termcap vt100 dl=5\E[M
+terminfo vt100 dl=5\E[M
+
+#facit's "al" / "dl" are buggy if the current / last line
+#contain attributes...
+termcap facit al=\E[L\E[K:AL@:dl@:DL@:cs=\E[%i%d;%dr:ic@
+terminfo facit al=\E[L\E[K:AL@:dl@:DL@:cs=\E[%i%p1%d;%p2%dr:ic@
+
+#make sun termcap/info better
+termcap sun 'up=^K:AL=\E[%dL:DL=\E[%dM:UP=\E[%dA:DO=\E[%dB:LE=\E[%dD:RI=\E[%dC:IC=\E[%d@:WS=1000\E[8;%d;%dt'
+terminfo sun 'up=^K:AL=\E[%p1%dL:DL=\E[%p1%dM:UP=\E[%p1%dA:DO=\E[%p1%dB:LE=\E[%p1%dD:RI=\E[%p1%dC:IC=\E[%p1%d@:WS=\E[8;%p1%d;%p2%dt$<1000>'
+
+#xterm understands both im/ic and doesn't have a status line.
+#Note: Do not specify im and ic in the real termcap/info file as
+#some programs (e.g. vi) will (no,no, may (jw)) not work anymore.
+termcap xterm|fptwist hs@:cs=\E[%i%d;%dr:im=\E[4h:ei=\E[4l
+terminfo xterm|fptwist hs@:cs=\E[%i%p1%d;%p2%dr:im=\E[4h:ei=\E[4l
+
+# Long time I had this in my private screenrc file. But many people
+# seem to want it (jw):
+# we do not want the width to change to 80 characters on startup:
+# on suns, /etc/termcap has :is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;3;4;6l:
+termcap xterm 'is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;4;6l'
+terminfo xterm 'is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;4;6l'
+
+#
+# Do not use xterms alternate window buffer.
+# This one would not add lines to the scrollback buffer.
+#termcap xterm|xterms|xs ti=\E7\E[?47l
+#terminfo xterm|xterms|xs ti=\E7\E[?47l
+
+#make hp700 termcap/info better
+termcap hp700 'Z0=\E[?3h:Z1=\E[?3l:hs:ts=\E[62"p\E[0$~\E[2$~\E[1$}:fs=\E[0}\E[61"p:ds=\E[62"p\E[1$~\E[61"p:ic@'
+terminfo hp700 'Z0=\E[?3h:Z1=\E[?3l:hs:ts=\E[62"p\E[0$~\E[2$~\E[1$}:fs=\E[0}\E[61"p:ds=\E[62"p\E[1$~\E[61"p:ic@'
+
+#wyse-75-42 must have defflow control (xo = "terminal uses xon/xoff")
+#(nowadays: nx = padding doesn't work, have to use xon/off)
+#essential to have it here, as this is a slow terminal.
+termcap wy75-42 nx:xo:Z0=\E[?3h\E[31h:Z1=\E[?3l\E[31h
+terminfo wy75-42 nx:xo:Z0=\E[?3h\E[31h:Z1=\E[?3l\E[31h
+
+#remove some stupid / dangerous key bindings
+bind '^k'
+#bind 'L'
+bind '^\'
+#make them better
+bind '\\' quit
+bind 'K' kill
+bind 'I' login on
+bind 'O' login off
+bind '}' history
diff --git a/etc/mkinstalldirs b/etc/mkinstalldirs
new file mode 100755
index 0000000..0e29377
--- /dev/null
+++ b/etc/mkinstalldirs
@@ -0,0 +1,35 @@
+#!/bin/sh
+# Make directory hierarchy.
+# Written by Noah Friedman <friedman@prep.ai.mit.edu>
+# Public domain.
+
+defaultIFS='
+'
+IFS="${IFS-${defaultIFS}}"
+
+errstatus=0
+
+for file in ${1+"$@"} ; do
+ oIFS="${IFS}"
+ # Some sh's can't handle IFS=/ for some reason.
+ IFS='%'
+ set - `echo ${file} | sed -e 's@/@%@g' -e 's@^%@/@'`
+ IFS="${oIFS}"
+
+ pathcomp=''
+
+ for d in ${1+"$@"} ; do
+ pathcomp="${pathcomp}${d}"
+
+ if test ! -d "${pathcomp}"; then
+ echo "mkdir $pathcomp" 1>&2
+ mkdir "${pathcomp}" || errstatus=$?
+ fi
+
+ pathcomp="${pathcomp}/"
+ done
+done
+
+exit $errstatus
+
+# eof
diff --git a/etc/newsyntax b/etc/newsyntax
new file mode 100755
index 0000000..6b5bb03
--- /dev/null
+++ b/etc/newsyntax
@@ -0,0 +1,64 @@
+#!/bin/sh
+#
+# newsyntax -- update a screenrc file from 3.2 to 3.3 syntax
+#
+# please check all comments after running this script and watch out
+# for funny passages.
+#
+if [ $# != 1 ]; then
+ echo "usage $0 screenrcfile"
+ exit 1;
+fi
+
+#Ultrix 4.2 /bin/sh does not handle "read a < $1"
+#Dean Gaudet <dgaudet@watdragon.uwaterloo.ca>
+exec < $1
+read a
+
+if [ ."$a" = '.#3.3' ]; then
+ echo "$1 already updated"
+ exit 0
+fi
+
+cp $1 $1.old
+echo "#3.3" > $1
+echo "# Do not remove the above line. This screen rc file was updated" >> $1
+echo "# by the newsyntax script." >> $1
+sed < $1.old >> $1 \
+-e 's/\([ #]\)flow/\1defflow/g' \
+-e 's/^flow/defflow/g' \
+-e 's/\([ #]\)set[ ]*defflow/\1flow/g' \
+-e 's/^set[ ]*defflow/flow/g' \
+-e 's/\([ #]\)mode/\1defmode/g' \
+-e 's/^mode/defmode/g' \
+-e 's/\([ #]\)set[ ]*defmode/\1defmode/g' \
+-e 's/^set[ ]*defmode/defmode/g' \
+-e 's/\([ #]\)monitor/\1defmonitor/g' \
+-e 's/^monitor/defmonitor/g' \
+-e 's/\([ #]\)set[ ]*defmonitor/\1monitor/g' \
+-e 's/^set[ ]*defmonitor/monitor/g' \
+-e 's/\([ #]\)login/\1deflogin/g' \
+-e 's/^login/deflogin/g' \
+-e 's/\([ #]\)set[ ]*deflogin/\1login/g' \
+-e 's/^set[ ]*deflogin/login/g' \
+-e 's/\([ #]\)wrap/\1defwrap/g' \
+-e 's/^wrap/defwrap/g' \
+-e 's/\([ #]\)set[ ]*defwrap/\1wrap/g' \
+-e 's/^set[ ]*defwrap/wrap/g' \
+-e 's/\([ #]\)scrollback/\1defscrollback/g' \
+-e 's/^scrollback/defscrollback/g' \
+-e 's/\([ #]\)set[ ]*defscrollback/\1scrollback/g' \
+-e 's/^set[ ]*defscrollback/scrollback/g' \
+-e 's/\([ #]\)refresh/\1allPARtial/g' \
+-e 's/^refresh/allPARtial/g' \
+-e 's/\([ #]\)redraw/\1allPARtial/g' \
+-e 's/^redraw/allPARtial/g' \
+-e 's/\([ #]\)set[ ]*allPARtial/\1PARtial/g' \
+-e 's/^set[ ]*allPARtial/PARtial/g' \
+-e 's/\([ #]\)visualbell/\1vbell/g' \
+-e 's/^visualbell/vbell/g' \
+-e 's/PARtial\([ ]*\)on/partial\1off/g' \
+-e 's/PARtial\([ ]*\)off/partial\1on/g' \
+-e 's/allPARtial/refresh/g' \
+-e 's/^set[ ]//g'
+
diff --git a/etc/screenrc b/etc/screenrc
new file mode 100644
index 0000000..839ad8c
--- /dev/null
+++ b/etc/screenrc
@@ -0,0 +1,124 @@
+#
+# Example of a user's .screenrc file
+#
+
+# This is how one can set a reattach password:
+# password ODSJQf.4IJN7E # "1234"
+
+# no annoying audible bell, please
+vbell on
+
+# detach on hangup
+autodetach on
+
+# don't display the copyright page
+startup_message off
+
+# emulate .logout message
+pow_detach_msg "Screen session of \$LOGNAME \$:cr:\$:nl:ended."
+
+# advertise hardstatus support to $TERMCAP
+# termcapinfo * '' 'hs:ts=\E_:fs=\E\\:ds=\E_\E\\'
+
+# make the shell in every window a login shell
+#shell -$SHELL
+
+# autoaka testing
+# shellaka '> |tcsh'
+# shellaka '$ |sh'
+
+# set every new windows hardstatus line to somenthing descriptive
+# defhstatus "screen: ^E (^Et)"
+
+defscrollback 1000
+
+
+################
+#
+# xterm tweaks
+#
+
+#xterm understands both im/ic and doesn't have a status line.
+#Note: Do not specify im and ic in the real termcap/info file as
+#some programs (e.g. vi) will not work anymore.
+termcap xterm hs@:cs=\E[%i%d;%dr:im=\E[4h:ei=\E[4l
+terminfo xterm hs@:cs=\E[%i%p1%d;%p2%dr:im=\E[4h:ei=\E[4l
+
+#80/132 column switching must be enabled for ^AW to work
+#change init sequence to not switch width
+termcapinfo xterm Z0=\E[?3h:Z1=\E[?3l:is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;4;6l
+
+# Make the output buffer large for (fast) xterms.
+termcapinfo xterm* OL=10000
+
+# tell screen that xterm can switch to dark background and has function
+# keys.
+termcapinfo xterm 'VR=\E[?5h:VN=\E[?5l'
+termcapinfo xterm 'k1=\E[11~:k2=\E[12~:k3=\E[13~:k4=\E[14~'
+termcapinfo xterm 'kh=\E[1~:kI=\E[2~:kD=\E[3~:kH=\E[4~:kP=\E[5~:kN=\E[6~'
+
+# special xterm hardstatus: use the window title.
+termcapinfo xterm 'hs:ts=\E]2;:fs=\007:ds=\E]0;screen\007'
+
+# our xterm has colors! (rxvt, too)
+termcap xterm 'AF=\E[3%dm:AB=\E[4%dm'
+terminfo xterm 'AF=\E[3%p1%dm:AB=\E[4%p1%dm'
+
+#terminfo xterm 'vb=\E[?5h$<200/>\E[?5l'
+termcapinfo xterm 'vi=\E[?25l:ve=\E[34h\E[?25h:vs=\E[34l'
+
+# emulate part of the 'K' charset
+termcapinfo xterm 'XC=K%,%\E(B,[\304,\\\\\326,]\334,{\344,|\366,}\374,~\337'
+
+################
+#
+# wyse terminals
+#
+
+#wyse-75-42 must have flow control (xo = "terminal uses xon/xoff")
+#essential to have it here, as this is a slow terminal.
+termcapinfo wy75-42 xo:hs@
+
+# New termcap sequences for cursor application mode.
+termcapinfo wy* CS=\E[?1h:CE=\E[?1l:vi=\E[?25l:ve=\E[?25h:VR=\E[?5h:VN=\E[?5l:cb=\E[1K:CD=\E[1J
+
+################
+#
+# other terminals
+#
+
+#make hp700 termcap/info better
+termcapinfo hp700 'Z0=\E[?3h:Z1=\E[?3l:hs:ts=\E[62"p\E[0$~\E[2$~\E[1$}:fs=\E[0}\E[61"p:ds=\E[62"p\E[1$~\E[61"p:ic@'
+
+# Extend the vt100 desciption by some sequences.
+termcap vt100* ms:AL=\E[%dL:DL=\E[%dM:UP=\E[%dA:DO=\E[%dB:LE=\E[%dD:RI=\E[%dC
+terminfo vt100* ms:AL=\E[%p1%dL:DL=\E[%p1%dM:UP=\E[%p1%dA:DO=\E[%p1%dB:LE=\E[%p1%dD:RI=\E[%p1%dC
+
+
+################
+#
+# keybindings
+#
+
+#remove some stupid / dangerous key bindings
+bind k
+bind ^k
+bind .
+bind ^\
+bind \\
+bind ^h
+bind h
+#make them better
+bind '\\' quit
+bind 'K' kill
+bind 'I' login on
+bind 'O' login off
+bind '}' history
+
+# Yet another hack:
+# Prepend/append register [/] to the paste if ^a^] is pressed.
+# This lets me have autoindent mode in vi.
+register [ "\033:se noai\015a"
+register ] "\033:se ai\015a"
+bind ^] paste [.]
+
diff --git a/etc/toolcheck b/etc/toolcheck
new file mode 100755
index 0000000..8fa214f
--- /dev/null
+++ b/etc/toolcheck
@@ -0,0 +1,44 @@
+#!/bin/sh
+# toolcheck -- check for tools that have severe bugs. Good that all the buggy
+# tools identify by version numbers. This is the spirit of GNU :-)
+#
+# 24.7.95 jw.
+
+retval=0
+reply="`sh -version 2>&1 < /dev/null`"
+case "$reply" in
+ GNU*1.14.3*)
+ echo "- sh is '$reply'";
+ echo " CAUTION: This shell has a buggy 'trap' command.";
+ echo " The configure script may fail silently.";
+ retval=1;
+ ;;
+ GNU*1.14.2*|GNU*1.14.4*|GNU*1.13.*)
+ echo "- sh is '$reply' - good.";
+ ;;
+ GNU*) echo "- sh is '$reply' - (buggy again shell?).";
+ ;;
+ *) ;;
+esac
+
+reply="`sed --version 2>&1 < /dev/null`"
+case "$reply" in
+ GNU\ sed\ version\ 2.0[34])
+ echo "- sed is '$reply'";
+ echo " CAUTION: This sed cannot configure screen properly."
+ retval=1;
+ ;;
+ GNU\ sed\ version\ 2.05|GNU\ sed\ version\ 2.03\ kevin)
+ echo "- sed is '$reply' - good.";
+ ;;
+ GNU*) echo "- sed is '$reply'.";
+ ;;
+ *) ;;
+esac
+
+if [ "$retval" != 0 ]; then
+ echo " ***********************************************************"
+ echo " Please fix the above problem before reporting a screen bug!"
+ echo " ***********************************************************"
+fi
+exit $retval