putty terminal type and freenas

GunbleR

Dabbler
Joined
Apr 6, 2018
Messages
10
I'm trying to make putty transfer properly Home, End, Backspace and Delete keys. although web shell is set for "xterm", setting putty to that didn't help, as-well as:
xterm-256color, putty, linux, screen.
setting Home/End to "rxvt" makes it recognize Home, but End gives no response.
what is the correct setting?


also, using "iocage console" with "exec_clean=1(def)" replaces variable term in jail to "xterm-256color", which contradicts to that flag description in ui&manual.
was it intentional? is there a workaround to specify another one?

iocage_lib/iocage.py:
Code:
       if exec_clean:
            env_path = '/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:' \
                '/usr/local/bin:/root/bin'
            env_lang = os.environ.get('LANG', 'en_US.UTF-8')
            su_env = {
                'PATH': env_path,
                'PWD': '/',
                'HOME': '/',
                'TERM': 'xterm-256color',
                'LANG': env_lang,
                'LC_ALL': env_lang
}


running:
FreeNAS-11.2-U4.1
putty Release 0.71
 

GunbleR

Dabbler
Joined
Apr 6, 2018
Messages
10
It does work, but its not a solution i wanted.
Just defined the missing keys in .cshrc and pushed changes to jails.
Also, editing iocage.py to get term from host, like lang does work as intended. Ill probably file a bug later
 
Top