Date: Fri, 11 Apr 1997 13:03:09 +0200 (MET DST) From: Zahemszky Gabor <zgabor@CoDe.hu> To: freebsd-questions@freebsd.org (FreeBSD questions) Cc: ru@ucb.crimea.ua Subject: Re: Terminal input/output mapping tool Message-ID: <199704111103.NAA00864@CoDe.hu> In-Reply-To: <199704061844.VAA01495@relay.ucb.crimea.ua> from Ruslan Ermilov at "Apr 6, 97 09:44:50 pm"
next in thread | previous in thread | raw e-mail | index | archive | help
> Hi! > > Is there some tool like SysV' mapchan in FreeBSD or ports? Yes, but as I know, it's not documented anywhere. The vidcontrol(1) manual says something about the -l screenmap option, but doesn't say what's that. So - on syscons, as I know, the screenmap is a 256 byte file, and if you type the char which has code 135, the driver send the 135th char in that file. Not too much, and maybe incorrect, as I got it from the source, not from the authors of syscons/vidcontrol. Gabor --- #!/bin/ksh trap 'rm -f /tmp/$$.$$' EXIT HUP INT QUIT TERM&&print '21N16I25C25E30, 40M30E33E25T15U!'>/tmp/$$.$$&&IFS=' ABCDEFGHIJKLMNOPQRSTUVWXYZ '&&set -A X $(</tmp/$$.$$)&&IFS=' 0123456789 '&&set -A Y $(</tmp/$$.$$);IFS=' '&&set -- "${X[@]}"&&for i do [[ $i = ? ]]&&print $i&&continue;[[ $i = ??? ]]&&j=$i&&i=${i%?};typeset -i40 i=8#$i&&print -n ${i#???}&&[[ "$j" = ??? ]]&&print -n "${j#??} "&&unset j;typeset +i i;done;set -- "${Y[@]}"&&set -A X&&for i do [[ $i = , ]]&&i=2;[[ $i = ?? ]]||typeset -l i;set -A X "${X[@]}" $i&&typeset +l i;done&&set -- ${X[@]}&&print $*
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199704111103.NAA00864>