tprelog
Patron
- Joined
- Mar 2, 2016
- Messages
- 297
So I'm not even sure where to begin with this one.
Basically it seems like a terminal type has either been changed or is no longer being set correctly inside an iocage jail. I first noticed this problem using a bash script I created that uses
I first thought it was a problem with my script but now I am realizing I cant even do something as simple as edit a text file without first manually setting a terminal type using
I'm not really sure how else to describe this problem so I am including a few screen shots to hopefully help. For now lets forget my script and use a very simple example using
I have created a new jail called
Next I enter the jail console
Now I try to create a file using
Already I can see something is wrong as the menu is all on one line across the bottom of my terminal
I exit
Now the editor opens and looks as expected
So is this a bug in iocage console or is this a known change?
If this is a known change can someone please point me to some reading related to this and how I can set this correctly while creating a new a jail?
Thanks in advance
Basically it seems like a terminal type has either been changed or is no longer being set correctly inside an iocage jail. I first noticed this problem using a bash script I created that uses
screen
to install/update Home Assistant. Everything worked great from the time I made this script back on FreeNAS 11.1-U2, up to and including FreeNAS 11.2-BETA3. Now after upgrading to FreeNAS 11.2-RC1 My script crashes with a message that reads Please set a terminal type.
.I first thought it was a problem with my script but now I am realizing I cant even do something as simple as edit a text file without first manually setting a terminal type using
setenv TERM vt100
I'm not really sure how else to describe this problem so I am including a few screen shots to hopefully help. For now lets forget my script and use a very simple example using
ee
.I have created a new jail called
test-jail
using Code:
iocage create -r 11.2-RELEASE boot=on dhcp=on bpf=yes vnet=on -n test-jail
Next I enter the jail console
iocage console test-jail
Now I try to create a file using
ee testfile
Already I can see something is wrong as the menu is all on one line across the bottom of my terminal
I exit
ee
and set the terminal type manually using setenv TERM vt100
and again try creating a test fileNow the editor opens and looks as expected
So is this a bug in iocage console or is this a known change?
If this is a known change can someone please point me to some reading related to this and how I can set this correctly while creating a new a jail?
Thanks in advance
Last edited: