From: Michael Prokop Date: Sat, 17 Mar 2007 18:59:26 +0000 (+0100) Subject: added iso-term X-Git-Tag: 0.9.26 X-Git-Url: http://git.grml.org/?p=grml-scripts.git;a=commitdiff_plain;h=5806b2899a4288ced4678a122eeb70e7b8d36c89 added iso-term --- diff --git a/debian/changelog b/debian/changelog index a30ed87..2d4377c 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +grml-scripts (0.9.26) unstable; urgency=low + + * Added iso-term (wrapper script to run x-terminal-emulator in iso885915 + mode). + + -- Michael Prokop Sat, 17 Mar 2007 19:59:09 +0100 + grml-scripts (0.9.25) unstable; urgency=low * zsh-login: do not run grml-quickconfig when booting with 'nocolor' diff --git a/debian/rules b/debian/rules index fafd07f..5c40c09 100755 --- a/debian/rules +++ b/debian/rules @@ -55,7 +55,8 @@ binary-arch: build install dh_installdocs dh_installman manpages/grml-scripts.1 manpages/reread_partition_table.8 manpages/gtf.1 manpages/random-hostname.1 \ manpages/grml-setkeyboard.8 manpages/grml-setlang.8 manpages/getsf.1 manpages/grml-iptstate.8 manpages/qma.1 manpages/grml-swapon.8 \ - manpages/grml2ram.8 manpages/gsuggest.1 manpages/dirvish-setup.8 manpages/grml-setservices.8 manpages/grml-quickconfig.8 + manpages/grml2ram.8 manpages/gsuggest.1 manpages/dirvish-setup.8 manpages/grml-setservices.8 manpages/grml-quickconfig.8 \ + manpages/iso-term.1 # cp --no-dereference man/*.1.gz debian/grml-scripts/usr/share/man/man1/ dh_link /usr/sbin/blacklist /usr/sbin/unblacklist \ /usr/share/man/man1/grml-scripts.1.gz /usr/share/man/man1/align.1.gz \ diff --git a/manpages/iso-term.1 b/manpages/iso-term.1 new file mode 100644 index 0000000..e807d88 --- /dev/null +++ b/manpages/iso-term.1 @@ -0,0 +1,24 @@ +.TH iso-term 1 +.SH "NAME" +iso-term \- wrapper script to run x-terminal-emulator in iso885915 mode +.SH SYNOPSIS +.B iso-term +.SH DESCRIPTION +This manual page documents briefly the +.B iso-term +command. +.SH OPTIONS +iso-term does not support any options. +.SH NOTES +iso-term is a simple wrapper script to run x-terminal-emulator in iso885915 mode. +This might be useful when you have to connect to a remote system which is running +in iso885915 mode even though your local system uses utf-8. +.SH USAGE EXAMPLES +.TP +.B iso-term +Run x-terminal-emulator in iso mode. +.SH AUTHOR +iso-term was written by Michael Prokop . +.PP +This manual page was written by Michael Prokop + for the grml project (but may be used by others). diff --git a/usr_bin/iso-term b/usr_bin/iso-term new file mode 100755 index 0000000..9a81976 --- /dev/null +++ b/usr_bin/iso-term @@ -0,0 +1,27 @@ +#!/bin/sh +# Filename: iso-term +# Purpose: wrapper script to run x-terminal-emulator in iso885915 mode +# Authors: grml-team (grml.org), (c) Michael Prokop +# Bug-Reports: see http://grml.org/bugs/ +# License: This file is licensed under the GPL v2. +# Latest change: Sam Mär 17 19:56:13 CET 2007 [mika] +################################################################################ + +isutfenv() { +case "$LANG $CHARSET $LANGUAGE" in + (*utf*) return 0 ;; + (*UTF*) return 0 ;; + (*) return 1 ;; +esac +} + +if isutfenv ; then + for ENV in `env | grep UTF` ; do + eval export "$(echo $ENV | sed 's/UTF-8/iso885915/')" + done + x-terminal-emulator +else + x-terminal-emulator +fi + +## END OF FILE #################################################################