~ubuntu-branches/ubuntu/utopic/byobu/utopic

« back to all changes in this revision

Viewing changes to usr/share/byobu/keybindings/screen-escape-keys

  • Committer: Bazaar Package Importer
  • Author(s): Dustin Kirkland
  • Date: 2010-01-11 22:54:36 UTC
  • mto: This revision was merged to the branch mainline in revision 49.
  • Revision ID: james.westby@ubuntu.com-20100111225436-csnrc41k0bewth1e
Tags: upstream-2.47
ImportĀ upstreamĀ versionĀ 2.47

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
###############################################################################
 
2
#    Disable Byobu's f-key keybindings, define a set using screen's escape
 
3
#    sequence.
 
4
#
 
5
#    Copyright (C) 2009  Dustin Kirkland <kirkland@canonical.com>
 
6
#
 
7
#    This program is free software: you can redistribute it and/or modify
 
8
#    it under the terms of the GNU General Public License as published by
 
9
#    the Free Software Foundation, version 3 of the License.
 
10
#
 
11
#    This program is distributed in the hope that it will be useful,
 
12
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
14
#    GNU General Public License for more details.
 
15
#
 
16
#    You should have received a copy of the GNU General Public License
 
17
#    along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
18
###############################################################################
 
19
 
 
20
# This file disables the f-key bindings, but retains the
 
21
# keybindings that use screen's built-in escape sequence
 
22
 
 
23
# Disable the f-key bindings
 
24
bindkey -k k2
 
25
bindkey -k k3
 
26
bindkey -k k4
 
27
bindkey -k k5
 
28
bindkey -k k6
 
29
bindkey -k k7
 
30
bindkey -k k8
 
31
bindkey -k k9
 
32
bindkey -k F2
 
33
 
 
34
# Use the following sequences for byobu functionality
 
35
# SEQUENCE      ACTION                          F-Key equivalent
 
36
# ctrl-a-c      Create a new window             F2
 
37
# ctrl-a-p      Previous window                 F3
 
38
# ctrl-a-n      Next window                     F4
 
39
# ctrl-a-R      Reload profile                  F5
 
40
register r "^a:source $HOME/.byobu/profile^M"
 
41
bind R process r
 
42
# ctrl-a-d      Detach from this session        F6
 
43
# ctrl-a-[      Enter copy/scrollback mode      F7
 
44
# ctrl-a-A      Re-title a window               F8
 
45
# ctrl-a-@      Configuration                   F9
 
46
bind @ screen -t config 0 byobu-config
 
47
# ctrl-a-x      Lock this terminal              F12
 
48
# ctrl-a-$      Show detailed status
 
49
bind $ screen -t status 0 byobu-status-detail
 
50
# ctrl-a-!      Toggle f-key keybindings on
 
51
register e "^a:source /usr/share/byobu/keybindings/f-keys^M"
 
52
bind ! process e