! /etc/X11/Xresources/hanterm

! Uncomment the following lines to make hanterm appear much like a virtual
! console, so that ANSI colors will make more sense.
! Hanterm*background: black
! Hanterm*foreground: gray90

! DEC VT series terminal emulators (like xterm) must generate VT220-compliant
! sequences for the backspace and delete keys per the Debian Policy Manual;
! this provides compatibility with the Linux console.  Also, work around an
! apparent bug in the default translations for the home and end keys in
! hanterm.  Note that this resource specification affects all programs with a
! "vt100" widget in their resource class hierarchy, and that these
! translation overrides do not apply if one of the listed modifier keys is
! pressed (e.g., what shift-backspace does depends on the program in question).
Hanterm*VT100.Translations: #override ~Shift ~Ctrl ~Meta <Key>BackSpace: string("\177")\n\
                               ~Shift ~Ctrl ~Meta <Key>Delete: string("\033[3~")\n\
                               ~Shift ~Ctrl ~Meta <Key>Home: string("\033[1~")\n\
                               ~Shift ~Ctrl ~Meta <Key>End: string("\033[4~")\n\
			        Shift ~Ctrl ~Meta <Key>space: toggle-hangul()\n\
                               ~Shift  Ctrl ~Meta <Key>space: hanja-input() string(0x00)\n\
                               ~Shift ~Ctrl  Meta <Key>space : code-input()\n\
                               ~Shift  Ctrl ~Meta <Key>F11 : toggle-chat()\n\
                               ~Shift  Ctrl ~Meta <Key>F12 : change-code()\n\
                               ~Shift ~Ctrl  Meta <Key>F12 : change-keyboard()
Hanterm*iconName: Hanterm
Hanterm*title: Hanterm

Hanterm*Scrollbar*Translations: #override \n\
        Ctrl                   <Btn4Down>:     scroll-back(1,halfpage) \n\
        Lock Ctrl              <Btn4Down>:     scroll-back(1,halfpage) \n\
        Lock @Num_Lock Ctrl    <Btn4Down>:     scroll-back(1,halfpage) \n\
         @Num_Lock Ctrl        <Btn4Down>:     scroll-back(1,halfpage) \n\
                               <Btn4Down>:     scroll-back(5,line) \n\
        Ctrl                   <Btn5Down>:     scroll-forw(1,halfpage) \n\
        Lock Ctrl              <Btn5Down>:     scroll-forw(1,halfpage) \n\
        Lock @Num_Lock Ctrl    <Btn5Down>:     scroll-forw(1,halfpage) \n\
         @Num_Lock Ctrl        <Btn5Down>:     scroll-forw(1,halfpage) \n\
                               <Btn5Down>:     scroll-forw(5,line)
Hanterm*VT100*colorULMode: off
Hanterm*VT100*underLine: on
Hanterm*VT100*colorBDMode: off

Hanterm*VT100*color0: black
Hanterm*VT100*color1: red3
Hanterm*VT100*color2: green3
Hanterm*VT100*color3: yellow3
Hanterm*VT100*color4: blue3
Hanterm*VT100*color5: magenta3
Hanterm*VT100*color6: cyan3
Hanterm*VT100*color7: gray90
Hanterm*VT100*color8: gray30
Hanterm*VT100*color9: red
Hanterm*VT100*color10: green
Hanterm*VT100*color11: yellow
Hanterm*VT100*color12: blue
Hanterm*VT100*color13: magenta
Hanterm*VT100*color14: cyan
Hanterm*VT100*color15: white
Hanterm*VT100*colorBD: yellow
Hanterm*VT100*colorUL: white
