2 # Filename: grml-screen
3 # Purpose: wrapper for screen to start with appropriate configuration
4 # Authors: grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
5 # Bug-Reports: see http://grml.org/bugs/
6 # License: This file is licensed under the GPL v2.
7 # Latest change: Mit Mär 21 15:39:00 CET 2007 [mika]
8 ################################################################################
10 # export variable USER for use withing GNU screen:
16 sudo chown $USER.tty $TTY
18 # now run screen with config
19 cd $HOME # important for e.g. hardcopy-feature
20 # do we have a utf8 enabled terminal?
21 [ -x /usr/bin/vt-is-UTF8 ] && /usr/bin/vt-is-UTF8 -q && UTF='-U'
22 if [ `id -u` = 0 ] ; then
23 exec screen $UTF -c /etc/grml/screenrc
24 elif [ -r "$HOME/.screenrc" ] ; then
25 exec screen $UTF -c "$HOME/.screenrc"
27 exec screen $UTF -c /etc/grml/screenrc_grml
30 ## END OF FILE #################################################################