#!/bin/bash
xterm -rv -rightbar                                       \
    -xrm '*backarrowKeyIsErase:false'                     \
    -xrm '*deleteIsDEL:true'                              \
    -xrm '*VT100.scrollbar.translations:#override\n<Btn1Down>:StartScroll(Continuous) MoveThumb() NotifyThumb()\n<Btn1Motion>:MoveThumb() NotifyThumb()\n<BtnUp>:NotifyScroll(Proportional) EndScroll()' \
    -xrm '*faceName:x11:Droid Sans Mono'                  \
    -xrm '*faceSize:14'                                   \
    -xrm '*renderFont:true'                               \
    -e bash                                               \
        --init-file <( echo '
             [ -f "$HOME/.bashrc" ] && . "$HOME/.bashrc"
             stty erase ^H
             bind '\''"\C-?"'\'':delete-char
             '
         )
