#!/bin/bash
#-------------------------------------------------------------------------------
# charon_menu_putty
#-------------------------------------------------------------------------------
# Copyright (C) 2013-2023 STROMASYS.
# All rights reserved.
# Products: AXP/VAX + PAR
#set -x
VERSION=2.0

. $(dirname $0)/charon_common
. $(dirname $0)/charon_common_menu

echo
display_header "PuTTY - settings recommendations"

cat <<EOF1

To have a correct line drawing using PuTTY (correctly drawn horizontal and
vertical lines and not lines like 'lqqqqqqqqqqk'), please use one of the
following solutions.

If none of the following solutions works for you, it it possible to disable
semi-graphics from the 'Preferences' option of the 'menu'.

[7m Solution#1 - using VT100 line drawing even in UTF-8 mode [0m
If this option is available (putty version 0.71 and above), update the putty
settings to enable line drawing even in UTF-8 mode (default mode):
- Window -> Translation -> Enable VT100 line drawing even in UTF-8 mode

[36mNote:[0m
Don't forget to save the changes in the saved session.
EOF1
Press_Enter

cat <<EOF2
[7m Solution#2 - using xterm settings [0m

Before opening the terminal session, load the saved session you want to use
and update the following parameters:
- Connection -> Data -> Terminal-type string can be set to either "xterm" or
  "vt200"
- Window -> Translation -> Remote Character set: the default ISO-8859-1

[36mNote:[0m
Don't forget to save the changes in the saved session.
EOF2
Press_Enter

exit
