#!/bin/bash
# testing which control chars we can use

export ctrla=`printf '\x01'`
export ctrlb=`printf '\x02'`
export ctrlc=`printf '\x03'`
export ctrld=`printf '\x04'`
export ctrle=`printf '\x05'`
export ctrlf=`printf '\x06'`
export ctrlg=`printf '\x07'`
#export ctrlh=`printf '\x08'`
export ctrli=`printf '\x09'`
#export ctrlj=`printf '\x0a'`
export ctrlk=`printf '\x0b'`
export ctrll=`printf '\x0c'`
export ctrlm=`printf '\x0d'`
export ctrln=`printf '\x0e'`
export ctrlo=`printf '\x0f'`
export ctrlp=`printf '\x10'`
export ctrlq=`printf '\x11'`
export ctrlr=`printf '\x12'`
export ctrls=`printf '\x13'`
export ctrlt=`printf '\x14'`
export ctrlu=`printf '\x15'`
export ctrlv=`printf '\x16'`
export ctrlw=`printf '\x17'`
export ctrlx=`printf '\x18'`
export ctrly=`printf '\x19'`
export ctrlz=`printf '\x1a'`
export ctrlB=`printf '\x1b'`
export ctrlC=`printf '\x1c'`
export ctrlD=`printf '\x1d'`
export ctrlE=`printf '\x1e'`
export ctrlF=`printf '\x1f'`


#-----------------------------------------------------------------------------

res="`echo X|sed -e 's/X/$ctrla/g'`"
if test -z "$res"; then echo "*** ctrla was unusable"; fi

res="`echo X|sed -e 's/X/$ctrlb/g'`"
if test -z "$res"; then echo "*** ctrlb was unusable"; fi

res="`echo X|sed -e 's/X/$ctrlc/g'`"
if test -z "$res"; then echo "*** ctrlc was unusable"; fi

res="`echo X|sed -e 's/X/$ctrld/g'`"
if test -z "$res"; then echo "*** ctrld was unusable"; fi

res="`echo X|sed -e 's/X/$ctrle/g'`"
if test -z "$res"; then echo "*** ctrle was unusable"; fi

res="`echo X|sed -e 's/X/$ctrlf/g'`"
if test -z "$res"; then echo "*** ctrlf was unusable"; fi

res="`echo X|sed -e 's/X/$ctrlg/g'`"
if test -z "$res"; then echo "*** ctrlg was unusable"; fi

res="`echo X|sed -e 's/X/$ctrli/g'`"
if test -z "$res"; then echo "*** ctrli was unusable"; fi

res="`echo X|sed -e 's/X/$ctrlk/g'`"
if test -z "$res"; then echo "*** ctrlk was unusable"; fi

res="`echo X|sed -e 's/X/$ctrll/g'`"
if test -z "$res"; then echo "*** ctrll was unusable"; fi

res="`echo X|sed -e 's/X/$ctrlm/g'`"
if test -z "$res"; then echo "*** ctrlm was unusable"; fi

res="`echo X|sed -e 's/X/$ctrln/g'`"
if test -z "$res"; then echo "*** ctrln was unusable"; fi

res="`echo X|sed -e 's/X/$ctrlo/g'`"
if test -z "$res"; then echo "*** ctrlo was unusable"; fi

res="`echo X|sed -e 's/X/$ctrlp/g'`"
if test -z "$res"; then echo "*** ctrlp was unusable"; fi

res="`echo X|sed -e 's/X/$ctrlq/g'`"
if test -z "$res"; then echo "*** ctrlq was unusable"; fi

res="`echo X|sed -e 's/X/$ctrlr/g'`"
if test -z "$res"; then echo "*** ctrlr was unusable"; fi

res="`echo X|sed -e 's/X/$ctrls/g'`"
if test -z "$res"; then echo "*** ctrls was unusable"; fi

res="`echo X|sed -e 's/X/$ctrlt/g'`"
if test -z "$res"; then echo "*** ctrlt was unusable"; fi

res="`echo X|sed -e 's/X/$ctrlu/g'`"
if test -z "$res"; then echo "*** ctrlu was unusable"; fi

res="`echo X|sed -e 's/X/$ctrlv/g'`"
if test -z "$res"; then echo "*** ctrlv was unusable"; fi

res="`echo X|sed -e 's/X/$ctrlw/g'`"
if test -z "$res"; then echo "*** ctrlw was unusable"; fi

res="`echo X|sed -e 's/X/$ctrlx/g'`"
if test -z "$res"; then echo "*** ctrlx was unusable"; fi

res="`echo X|sed -e 's/X/$ctrly/g'`"
if test -z "$res"; then echo "*** ctrly was unusable"; fi

res="`echo X|sed -e 's/X/$ctrlz/g'`"
if test -z "$res"; then echo "*** ctrlz was unusable"; fi

res="`echo X|sed -e 's/X/$ctrlB/g'`"
if test -z "$res"; then echo "*** ctrlB was unusable"; fi

res="`echo X|sed -e 's/X/$ctrlC/g'`"
if test -z "$res"; then echo "*** ctrlC was unusable"; fi

res="`echo X|sed -e 's/X/$ctrlD/g'`"
if test -z "$res"; then echo "*** ctrlD was unusable"; fi

res="`echo X|sed -e 's/X/$ctrlE/g'`"
if test -z "$res"; then echo "*** ctrlE was unusable"; fi

res="`echo X|sed -e 's/X/$ctrlF/g'`"
if test -z "$res"; then echo "*** ctrlF was unusable"; fi

