On Mon, Jun 25, 2018 at 02:26:12PM EDT, Amadeusz Sławiński wrote:
> On Mon, 25 Jun 2018 12:38:48 -0400
> Chris Jones <cga2...@gmail.com> wrote:

[...]

Quick update...

For now I'll just use the workaround provided as a demo by the attached file.

If you're interested, just run:

  $ screen -c overview-screenrc

The overview can be toggled via the re-assigned CTRL+a" key combo.

Hitting CTRL+a" again should get you back to where you left off.

Not pretty... but does the job, sort of... ;)

Any chance a proper solution via a --e.g. %O STRING ESCAPE (giving
access to the last command typed by the user in a given window) might be
implemented at some point?

Thanks,

CJ
#===============================================================================
# .screenrc - set up an overview screen via layouts
#
# CTRL+a " to toggle the overview screen view
#===============================================================================

#===============================================================================
# a better "command" key
#===============================================================================
# escape                ^@@                                     # Ctrl+<Space> 
#===============================================================================
# Miscellaneous
#===============================================================================

startup_message off                                     # copyright stuff
defscrollback   5000                                    # scroll back lines
shelltitle      'S'                                     # no fancy stuff
autodetach      on
pow_detach_msg  "Screen session of \$LOGNAME \$:cr:\$:nl:ended."
vbell           off                             
term            "screen-256color"  
attrcolor       b    ".I"                               # bright colors for bold
sorendition so kb

#===============================================================================
# Bindings & un-bindings...
#===============================================================================
bind k          
bind ^k
bind .
bind ^\
bind \\
bind ^h
bind h
bind 'K' kill           
bind 'I' login on
bind 'O' login off
bind '}' history
#
bind \"
bind \" layout next

#===============================================================================
# Windows 10-19 bound to Shift-0, Shift-1.. etc..
#===============================================================================

bind ')' select 10
bind '!' select 11
bind '@' select 12
bind '#' select 13
bind '$' select 14
bind '%' select 15
bind '^' select 16
bind '&' select 17
bind '*' select 18
bind '(' select 19
bind ')' select 20

#===============================================================================
# vi-like bindings to navigate split windows
#===============================================================================

bind j focus down
bind k focus up
bind h focus top
bind l focus bottom
bind o only

#==============================================================================
# Hardstatus & caption line 
#==============================================================================

caption splitonly "%{+d wk}- [%n] 
--------------------------------------------------------"     # add separator
hardstatus alwayslastline "[%H]%L=%=%-w%45L>(%n-%t)%+w%=%-13=[%d/%m %c]" 

#==============================================================================
# 20 raw shells to start off with... plenty of stuffing...
#==============================================================================

screen -t R $SHELL -c "ls -alch | less "                
screen -t P $SHELL -c "python"
screen -t S 
stuff 'ls
 env | grep WINDOW
'
screen -t S 
stuff 'ls
 env | grep WINDOW
'
screen -t S 
stuff 'ls
 env | grep WINDOW
'
screen -t S 
stuff 'ls
 env | grep WINDOW
'
screen -t S 
stuff 'ls
 env | grep WINDOW
'
screen -t S 
stuff 'ls
 env | grep WINDOW
'
screen -t S 
stuff 'ls
 env | grep WINDOW
'
screen -t S 
stuff 'ls
 env | grep WINDOW
'
screen -t S 
stuff 'ls
 env | grep WINDOW
'
screen -t S 
stuff 'ls
 env | grep WINDOW
'
screen -t S 
stuff 'ls
 env | grep WINDOW
'
screen -t S 
stuff 'ls
 env | grep WINDOW
'
screen -t S 
stuff 'ls
 env | grep WINDOW
'
screen -t S 
stuff 'ls
 env | grep WINDOW
'
screen -t S 
stuff 'ls
 env | grep WINDOW
'
screen -t S 
stuff 'ls
 env | grep WINDOW
'
screen -t S 
stuff 'ls
 env | grep WINDOW
'
screen -t S 
stuff 'ls
 env | grep WINDOW
'

#==============================================================================
# Define two layouts layout 0 for regular work and layout 4x5 for the overview
#==============================================================================

layout new 0

layout new 4x5

select 0
split -v
focus right
select 1
split -v
focus right
select 2
split -v
focus right
select 3
split -v
focus right
select 4

focus
split 
focus down
select 5

split 
focus down
select 10

split 
focus down
select 15

focus

split 
focus down
select 6

split 
focus down
select 11

split 
focus down
select 16

focus

split 
focus down
select 7

split 
focus down
select 12

split 
focus down
select 17

focus

split 
focus down
select 8

split 
focus down
select 13

split 
focus down
select 18

focus

split 
focus down
select 9

split 
focus down
select 14

split 
focus down
select 19

# layout select 4x5
layout select 0
select 0
_______________________________________________
screen-users mailing list
screen-users@gnu.org
https://lists.gnu.org/mailman/listinfo/screen-users

Reply via email to