<Eterm-0.9.2>

%include "../Eterm/menus.cfg"
%include "../Eterm/theme.cfg"

begin color
    es_current "#ffff00"
    es_active  "#0000ff"
end color

begin attributes
    name "%appname() -- Escreen Session"
end attributes

begin menu
    title Escreen
    begin menuitem
        text "New"
        action script "es_display(new)"
    end
    begin menuitem
        text "New..."
        action script "es_display(new, ask)"
    end
    begin menuitem
        text "Rename..."
        action script "es_display(name, ask)"
    end
    begin menuitem
        text "Backlog..."
        action script "es_display(backlog)"
    end
    begin menuitem
        text "Monitor"
        action script "es_display(monitor)"
    end
    begin menuitem
        text "Close"
        action script "es_display(close)"
    end
    -
    begin menuitem
        text "Split"
        action script "es_region(new)"
    end
    begin menuitem
        text "Unsplit"
        action script "es_region(full)"
    end
    begin menuitem
        text "Prev region"
        action script "es_region(prev)"
    end
    begin menuitem
        text "Next region"
        action script "es_region(next)"
    end
    begin menuitem
        text "Kill region"
        action script "es_region(kill)"
    end
    -
    begin menuitem
        text "Reset"
        action script "es_reset()"
    end
    begin menuitem
        text "Statement"
        action script "es_statement()"
    end
    -
    begin menuitem
        text "About..."
        action script "msgbox(Screen/Twin compatibility layer by Azundris <scream@azundris.com>)"
    end
end menu

begin actions
    bind alt Left to script "es_display(prev)"
    bind alt Right to script "es_display(next)"
    bind alt Up to script "es_region(prev)"
    bind alt Down to script "es_region(next)"
    bind alt Prior to script "es_display(prev)"
    bind alt Next to script "es_display(next)"
    bind alt space to script "es_display(toggle)"
    bind ctrl Tab to script "es_display(next)"
    bind ctrl t to script "es_display(new, ask)"

    # alt-1..alt-0 -> display(0)..display(9)
    bind alt 0x31 to script "es_display(goto, 0)"
    bind alt 0x32 to script "es_display(goto, 1)"
    bind alt 0x33 to script "es_display(goto, 2)"
    bind alt 0x34 to script "es_display(goto, 3)"
    bind alt 0x35 to script "es_display(goto, 4)"
    bind alt 0x36 to script "es_display(goto, 5)"
    bind alt 0x37 to script "es_display(goto, 6)"
    bind alt 0x38 to script "es_display(goto, 7)"
    bind alt 0x39 to script "es_display(goto, 8)"
    bind alt 0x30 to script "es_display(goto, 9)"

    # Commented out; too intrusive -- mej
    # F1..F10 -> display(0)..display(9)
    #bind F1 to script "es_display(goto, 0)"
    #bind F2 to script "es_display(goto, 1)"
    #bind F3 to script "es_display(goto, 2)"
    #bind F4 to script "es_display(goto, 3)"
    #bind F5 to script "es_display(goto, 4)"
    #bind F6 to script "es_display(goto, 5)"
    #bind F7 to script "es_display(goto, 6)"
    #bind F8 to script "es_display(goto, 7)"
    #bind F9 to script "es_display(goto, 8)"
    #bind F10 to script "es_display(goto, 9)"

    bind alt n to script "es_display(new)"
    bind alt r to script "es_display(rename)"
    bind alt c to script "es_display(kill, ask)"
    bind alt m to script "es_display(watch)"
    bind alt b to script "es_display(backlog)"

    bind alt s to script "es_region(new)"
    bind alt u to script "es_region(full)"
    bind alt o to script "es_region(next)"
    bind alt k to script "es_region(kill, ask)"

    bind alt shift S to script "es_statement()"
    bind alt shift R to script "es_reset()"
end actions

begin escreen
    url ""
    #delay 2
    #bbar_dock bottom
    #bbar_font "-adobe-helvetica-medium-r-normal--10-100-75-75-p-56-iso8859-1"
end escreen
