Screenrc
From AleikoumWiki
(Difference between revisions)
m |
|||
(3 intermediate revisions not shown.) | |||
Line 1: | Line 1: | ||
- | '''.screenrc''' | ||
- | |||
Quel superbe outil ce screen ! Mais tel quel je le trouve pas super pratique !<br /> | Quel superbe outil ce screen ! Mais tel quel je le trouve pas super pratique !<br /> | ||
Heureusement ce '''.screenrc''' est bien pratique pour rendre exploitable le tout<br /> | Heureusement ce '''.screenrc''' est bien pratique pour rendre exploitable le tout<br /> | ||
Line 30: | Line 28: | ||
vbell_msg "bell on %t (%n)"<br /> | vbell_msg "bell on %t (%n)"<br /> | ||
# look and feel | # look and feel | ||
- | caption always "%{= bb}%{+b w}%n %h %=%t %c" | + | #caption always "%{= bb}%{+b w}%n %h %=%t %c" |
- | hardstatus alwayslastline "%-Lw%{= BW}%50>%n%f* %t%{-}%+Lw%<"<br /> | + | #hardstatus alwayslastline "%-Lw%{= BW}%50>%n%f* %t%{-}%+Lw%<"<br /> |
+ | hardstatus alwayslastline | ||
+ | hardstatus string '%{= kG}[ %{G}%H %l ]%{g}[%= %{=kw}%?%-Lw%?%{r}(%{W}%n*%f %t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B} %Y-%m-%d %{W}%C%a %{g}]' | ||
activity "Activity in %t(%n)"<br /> | activity "Activity in %t(%n)"<br /> | ||
shelltitle "shell" | shelltitle "shell" | ||
+ | #putty bindings | ||
+ | bindkey "^[[C" next | ||
+ | bindkey "^[[D" prev | ||
Current revision
Quel superbe outil ce screen ! Mais tel quel je le trouve pas super pratique !
Heureusement ce .screenrc est bien pratique pour rendre exploitable le tout
A placer dans votre home !
Contenu du fichier .screenrc :
######################################################################### # # # Mon ~/.screenrc par Erwan Laby Ben Souiden # # ------------------------------------------ # # # #last MAJ : 2007-07-07 16:27 # #e.bensouiden@gmail.com # #########################################################################
# adapte de la conf d'Alexis
#Contenu du .screenrc (qu'on retrouve dans le home de l'user) defutf8 on # nouvelles fenêtres en utf-8 utf8 on on # mode utf-8-aware dans les deux sens
# This tells screen that when it recieves what terminfo says the external # terminal sends on a backspace, it should send a ^H to the inner # terminal. bindkey -k kb stuff ^H
# skip the startup message startup_message off
# start with visual bell as default vbell on vbell_msg "bell on %t (%n)"
# look and feel #caption always "%{= bb}%{+b w}%n %h %=%t %c" #hardstatus alwayslastline "%-Lw%{= BW}%50>%n%f* %t%{-}%+Lw%<"
hardstatus alwayslastline hardstatus string '%{= kG}[ %{G}%H %l ]%{g}[%= %{=kw}%?%-Lw%?%{r}(%{W}%n*%f %t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B} %Y-%m-%d %{W}%C%a %{g}]' activity "Activity in %t(%n)"
shelltitle "shell" #putty bindings bindkey "^[[C" next bindkey "^[[D" prev
Voici un petit mémo de l'utilisation de screen :
screen -ls # liste les terminaux attaches et detaches de la machine courante screen -S nom_virtual_terminal # creation d'un nouveau terminal virtuel screen -r pid_virtual_terminal # récupération d'un virtual terminal détaché screen -rx pid_virtual_terminal # récupération d'un virtual terminal concurrent ^ac # nouveau terminal virtuel cree (onglet) ^aa # switch entre le dernier terminal virtuel utilise et le courant ^a0 # va au terminal numero 0 .... ^a9 # va au terminal numero 9 ^aA # renomme le terminal virtuel courant ^a? # affiche l'aide des raccourcis ^aS # split le current terminal en 2 ^d # detachement du screen en cours exit # kill l'onglet du terminal virtuel courant, si c'est le dernier actif kill le screen créé !