Salut,
j'ai découvert un autre usage de screen grâce à vous: MERCI 🙂
Par contre je n'arrive pas à avoir la date dans le hardstatus en français avec le bon encodage (j'ai aussi ce problème avec elinks mais j'ai pas trop cherché)
voilà ce que j'ai (voir en bas à gauche)

et mon screenrc:
# ------------------------------------------------------------------------------
# SCREEN SETTINGS
# ------------------------------------------------------------------------------
#encodage
#setenv LANG en_US #si "lang=fr_FR screen -c screenFULLrc" ok mais en anglais
#setenv LANG fr_FR.iso8819-15
#setenv LANG en_US.iso8819-15
#setenv LC_CTYPE fr_FR.UTF-8
#defutf8 on
#encodage pour les accents
#defencoding utf8
#defencoding iso8859-15
#encoding utf8 iso8859-15 #marche mais plus d'encodage ensuite dans RSS
#startup_message off
#nethack on
#defflow on # will force screen to process ^S/^Q
deflogin on
#autodetach off
# turn visual bell on
vbell off
#vbell_msg " Wuff ---- Wuff!! "
# define a bigger scrollback, default is 100 lines
defscrollback 1024
# ------------------------------------------------------------------------------
# SCREEN KEYBINDINGS
# ------------------------------------------------------------------------------
#\033p alt+p
#^p ctrl+p
bindkey ² next
bindkey \033p prev
# Remove some stupid / dangerous key bindings
bind ^k
#bind L
bind ^\
# Make them better
bind \\ quit
bind K kill
bind I login on
bind O login off
bind } history
# An example of a "screen scraper" which will launch urlview on the current
# screen window
#
#bind ^B eval "hardcopy_append off" "hardcopy -h $HOME/.screen-urlview" "screen urlview $HOME/.screen-urlview"
# ------------------------------------------------------------------------------
# TERMINAL SETTINGS
# ------------------------------------------------------------------------------
# The vt100 description does not mention "dl". *sigh*
termcapinfo vt100 dl=5\E[M
# turn sending of screen messages to hardstatus off
hardstatus on
# Set the hardstatus prop on gui terms to set the titlebar/icon title
termcapinfo xterm*|rxvt*|kterm*|Eterm* hs:ts=\E]0;:fs=\007:ds=\E]0;\007
# use this for the hard status string
#hardstatus string "%h%? users: %u%?"
#caption always
#caption string "%{kw}%-w%{wr}%n %t%{-}%+w"
# An alternative hardstatus to display a bar at the bottom listing the
# windownames and highlighting the current windowname in blue. (This is only
# enabled if there is no hardstatus setting for your terminal)
#
#affichage en bas de screen
#voir pour ajouter un warning
hardstatus alwayslastline
hardstatus string "%{= kG}%{g}[ %{+b b}%D %d %M %Y %c:%s%{-b g} ] [ %{y}%?%-w%{+b b} %n-%t %{-b y}%+w%?%{g} ]"
# set these terminals up to be 'optimal' instead of vt100
termcapinfo xterm*|linux*|rxvt*|Eterm* OP
# Change the xterm initialization string from is2=\E[!p\E[?3;4l\E[4l\E>
# (This fixes the "Aborted because of window size change" konsole symptoms found
# in bug #134198)
termcapinfo xterm 'is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;4;6l'
# To get screen to add lines to xterm's scrollback buffer, uncomment the
# following termcapinfo line which tells xterm to use the normal screen buffer
# (which has scrollback), not the alternate screen buffer.
#
termcapinfo xterm|xterms|xs|rxvt ti@:te@
# Enable non-blocking mode to better cope with flaky ssh connections.
defnonblock 5
# ------------------------------------------------------------------------------
# STARTUP SCREENS
# ------------------------------------------------------------------------------
# Example of automatically running some programs in windows on screen startup.
#
# The following will open top in the first window, an ssh session to monkey
# in the next window, and then open mutt and tail in windows 8 and 9
# respectively.
#
screen -t Zik 0 bash -c '/home/fabux/Scripts/ZICscreen.sh'
screen -t Top 1 top -d1
screen -t Bash 2 bash
screen -t Mail 3 cone
screen -t RSS 4 newsbeuter
screen -t IM 5 centerim-utf8
#screen -t Internet 6 w3m -N google.fr /usr/share/doc/w3m/MANUAL.html#Key:orig doc.ubuntu-fr.org forum.ubuntu-fr.org
screen -t Net 6 elinks google.fr /usr/share/doc/w3m/MANUAL.html#Key:orig doc.ubuntu-fr.org forum.ubuntu-fr.org
#select cone
#split
#split -v
#select bash
focus down
select 3
Si vous aviez une idée pour avoir la date en français avec le bon encodage svp.
J'en profite aussi pour demander 2-3 choses:
- est-ce possible d'ajouter dans mon hardstatus une 3ème partie sur la droite avec les infos récupérées de mocp?
edit: ça c'est bon. Il faut utiliser backtick
- une autre barre d'info en haut ?
- le signal comme quoi j'ai une autre fenêtre qui demande une attention se règle où/comment (position, couleur) ? (genre j'ai un mail sur le screen 3 ou une demande de mdp sur le screen 2)
- lancer une commande si on quitte le terminal ? (genre on fait ^\, yes et ça fait mocp -x)
- toujours mocp: aujourd'hui je passe par un script pour vérifier qu'il n'est pas déjà lancer (j'ai tendance à quitter screen sans tout clore) avec dedans
mocp -S && mocp -o s -f -p && mocp
il y a peut-être plus simple ?
@z0rg> rien à voir mais grâce à toi j'utilise désormais cone merci. Par contre j'ai un souci avec une boite mail imap free. À tout hasard tu n'aurais pas une piste pour
m'aider ? 😃
edit: ajout commentaire pour backtick.
Pour l'encodage je continue de chercher (marche avec terminfo xterm* KJ=iso8859-15 mais ça me fais le même problème qu'avec encoding...)