Commit d74eb583 authored by Jérome Perrin's avatar Jérome Perrin

slaprunner: set $TERMINFO in bash profile

so that terminal uses terminfo from the same curses library.
parent eb544196
...@@ -18,7 +18,7 @@ md5sum = c44a7481bb85e3258128afe3fcf23f44 ...@@ -18,7 +18,7 @@ md5sum = c44a7481bb85e3258128afe3fcf23f44
[template-runner] [template-runner]
filename = instance-runner.cfg filename = instance-runner.cfg
md5sum = 4923167fe68c8c20aff46dbeb3716f9b md5sum = 7529924d81c0d06c73b2f87b00bb8d05
[template-runner-import-script] [template-runner-import-script]
filename = template/runner-import.sh.jinja2 filename = template/runner-import.sh.jinja2
...@@ -58,7 +58,7 @@ md5sum = f8446fcf254b4929eb828a9a1d7e5f62 ...@@ -58,7 +58,7 @@ md5sum = f8446fcf254b4929eb828a9a1d7e5f62
[template-bash-profile] [template-bash-profile]
filename = template/bash_profile.in filename = template/bash_profile.in
md5sum = 37eea89042a58127c85e6b3886260e59 md5sum = 703bb29604843774797dd246e67a4a52
[template-supervisord] [template-supervisord]
filename = template/supervisord.conf.in filename = template/supervisord.conf.in
......
...@@ -777,9 +777,13 @@ rendered = $${buildout:directory}/.bash_profile ...@@ -777,9 +777,13 @@ rendered = $${buildout:directory}/.bash_profile
context = context =
raw path $${shell-environment:path} raw path $${shell-environment:path}
raw shell $${shell-environment:shell} raw shell $${shell-environment:shell}
key terminfo terminfo:location
key instance_name slap-parameter:instance-name key instance_name slap-parameter:instance-name
key workdir runnerdirectory:home key workdir runnerdirectory:home
[terminfo]
location = ${ncurses:location}/share/terminfo/
#--------------------------- #---------------------------
#-- #--
#-- supervisord managing slaprunner automation features #-- supervisord managing slaprunner automation features
......
...@@ -10,6 +10,8 @@ export PROMPT_COMMAND='echo -en "\033]0;{{-instance_name}}\a"' ...@@ -10,6 +10,8 @@ export PROMPT_COMMAND='echo -en "\033]0;{{-instance_name}}\a"'
{% endif %} {% endif %}
export PS1="$ " export PS1="$ "
export TERMINFO={{- terminfo }}
if [ -f "$HOME/.bashrc" ] ; then if [ -f "$HOME/.bashrc" ] ; then
source $HOME/.bashrc source $HOME/.bashrc
fi fi
...@@ -32,5 +34,5 @@ alias la='ls -A' ...@@ -32,5 +34,5 @@ alias la='ls -A'
alias l='ls -CF' alias l='ls -CF'
echo "Welcome to SlapOS slaprunner shell" echo "Welcome to SlapOS slaprunner shell"
echo echo
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment