#! /bin/sh
# Written by Omer Zak
# Copyright (C) 1995, subject to GNU copyright provisions.
#
# Before using this shell script:
# 1. Create the file svga_israeli_hardware_font (which is not
#    distributed with this script due to possible copyright infringements)
#    by:
#    setfont -o svga_israeli_hardware_font
#    Then, in superuser mode:
#    mv svga_israeli_hardware_font /usr/lib/kbd/consolefonts
# 2. Install the file heb_ibm2iso in the directory /usr/lib/kbd/consoletrans
#    also in superuser mode.
#    
# Activate minicom with Hebrew characterset support.
setfont -o /tmp/hminicom_original_font svga_israeli_hardware_font
mapscrn -o /tmp/hminicom_original_mapscreen heb_ibm2iso
echo -ne '\033(K'
minicom -c on -l
# Revert to regular operating mode after exit from minicom.
mapscrn /tmp/hminicom_original_mapscreen
setfont /tmp/hminicom_original_font
# Clean up after yourself.
rm /tmp/hminicom_original_mapscreen
rm /tmp/hminicom_original_font
