´ÙÀ½ ÀÌÀü Â÷·Ê

5. Delete¿Í Backspace

Delete¿Í Backspace Å°°¡ Á¦´ë·Î µ¿ÀÛÇϵµ·Ï ÇÏ´Â °ÍÀÌ ±×¸® °£´ÜÇÑ ¹®Á¦´Â ¾Æ´Ï´Ù. ƯÈ÷ ÄܼÖ, X, bash, emacs, ¿ø°Ý ·Î±×ÀÎ µî ¿©·¯°¡Áö°¡ È¥ÇÕµÈ È¯°æ¿¡¼­´Â ´õ´õ¿í ±×·¯ÇÏ´Ù. ¾Æ¸¶µµ »ç¿ëÀÚ°¡ ¿øÇÏ´Â ¹Ù¸¦ Á¤È®È÷ ¼öÇàÇϵµ·Ï °ü°èµÈ ÇÁ·Î±×·¥ ¸ðµÎ¿¡°Ô Àü´ÞÇÏ·Á¸é ¿©·¯°³ÀÇ È¯°æ¼³Á¤È­ÀÏÀ» ÆíÁýÇØ¾ß µÉÁöµµ ¸ð¸¥´Ù. ÇÑÆíÀ¸·Î´Â Å°°¡ ¹ß»ý½ÃÅ°´Â Äڵ尡 ¹«¾ùÀÎÁöµµ (±×¸®°í kermitÀ̳ª emacsµî¿¡¼­ ÀÌ·¯ÇÑ Äڵ尡 ¾î¶² ±ÔÄ¢À¸·Î ´Ù½Ã ¸ÅÇεǴÂÁöµµ) ¹®Á¦°¡ µÇ°í, ´Ù¸¥ ÇÑÆíÀ¸·Î´Â °¢ Äڵ忡 ¿¬°áµÈ ±â´ÉÀÌ ¹«¾ùÀÎÁöµµ ¹®Á¦°¡ µÈ´Ù.

»ç¶÷µéÀÌ Á¾Á¾ `¹é½ºÆäÀ̽º Å°°¡ ÀÛµ¿ÇÏÁö ¾Ê´Â´Ù.'°í ºÒÆòÇϴµ¥, ÀÌ°ÍÀº ¸¶Ä¡ ÀÌ Å°¿¡ `ÀÌÀüÀÇ ¹®ÀÚ¸¦ Áö¿ì´Â' ³»ÀåµÈ ±â´ÉÀÌ ÀÖ´Â °Íó·³ ¸»ÇÏ´Â °ÍÀÌ´Ù. ÇÏÁö¸¸ ºÒÇàÈ÷µµ ÀÌ Å°°¡ ÇÏ´Â ÀÏÀ̶ó°ï ÄÚµå Çϳª¸¦ ¹ß»ýÇÏ´Â °Í»ÓÀ̸ç, Ä¿³Î tty µå¶óÀ̹ö¿Í ¸ðµç ¾îÇø®ÄÉÀÌ¼Ç ÇÁ·Î±×·¥ÀÌ ¹é½ºÆäÀ̽º Å°°¡ ½ÇÁ¦·Î `ÀÌÀü ¹®ÀÚ¸¦ Áö¿ì´Â' µ¿ÀÛÀ» Çϵµ·Ï ¼³Á¤µÇ¾î Àֱ⸦ °í´ëÇÏ´Â °ÍÀÌ ÀüºÎÀÌ´Ù.

¸ðµç À¯´Ð½º ÇÁ·Î±×·¥Àº `¿ä¸®µÈ' ¸ðµå¿¡¼­ Ä¿³Î tty µå¶óÀ̹ö¸¦ ÅëÇØ tty ÀÔ·ÂÀ» ¹Þ°í, ´Ü¼øÇÑ stty ¸í·ÉÀÌ »èÁ¦ ¹®ÀÚ¸¦ °áÁ¤ÇÑ´Ù. ÇÏÁö¸¸ bash³ª emacs, X °°Àº ÇÁ·Î±×·¥Àº µ¶ÀÚÀûÀ¸·Î ÀÔ·ÂÀ» ´Ù·ç¸ç Çϳª¾¿ ¿Ã¹Ù·Î µ¿ÀÛÇÏ´ÂÁö È®ÀÎÇØ¾ß ÇÑ´Ù.

5.1 À¯´Ð½º¿¡¼­ Á÷Àü ¹®ÀÚ¸¦ Áö¿ì´Âµ¥ »ç¿ëÇÒ ¹®ÀÚ¸¦ ÁöÁ¤ÇÏ´Â ¹æ¹ý

        % stty erase ^?
±ÛÀÚ°¡ Áö¿öÁö±ä ÇÏÁö¸¸ ÀÌ»óÇÑ ¹æ¹ýÀ¸·Î Áö¿öÁø´Ù¸é »ç¿ëÀÚÀÇ tty ¼³Á¤¿¡ ¹º°¡ À߸øµÈ °ÍÀÌ ÀÖ´Â °ÍÀÌ´Ù. echoprt°¡ ¼³Á¤µÇ¾î ÀÖ´Ù¸é Áö¿öÁø ¹®ÀÚ´Â \¿Í /·Î µÑ·¯½Î¿©Áø´Ù. echoe°¡ ¼³Á¤µÇ¾î ÀÖÁö ¾ÊÀ¸¸é »èÁ¦ ¹®ÀÚ°¡ È­¸é¿¡ ÂïÈú °ÍÀÌ´Ù. (#°ú °°ÀÌ È­¸é¿¡ Ç¥½ÃµÇ´Â ¹®ÀÚÀÎ °æ¿ì¶ó¸é ´ç¿¬ÇÏ´Ù°í »ý°¢ÇÒ °ÍÀÌ´Ù.) º¸ÅëÀÇ °æ¿ì´Â stty echoe -echoprt »óŸ¦ ¿øÇÑ´Ù. stty saneÀ̶ó°í Çϸé ÀÌ·± »óÅ°¡ µÇ¸ç, ±× ÀÌ¿Ü¿¡µµ ¸î°¡Áö¸¦ ´õ ¼³Á¤ÇÑ´Ù. stty -a¶ó°í ¸í·ÉÀ» ³»¸®¸é ÇöÀç ¼³Á¤ »óŸ¦ È­¸é¿¡ º¸¿©ÁØ´Ù. »ç¿ëÀÚ°¡ ¿Ã¹Ù¸¥ getty¸¦ »ç¿ëÇÏ¸é µðÆúÆ®·Î ÀûÀýÇÑ »óÅ·ΠµÇ¾î ÀÖ´Ù.

bash³ª emacs µîµî ¸¹Àº ÇÁ·Î±×·¥ÀÌ µ¶ÀÚÀûÀÎ Å°¹ÙÀεùÀ» °¡Áö°í ÀÖÀ½¿¡ À¯ÀÇÇ϶ó. (~/.inputrc, ~/.emacs µî¿¡ Á¤ÀǵǾî ÀÖ´Ù.) ÀÌ·± ÇÁ·Î±×·¥µéÀº »èÁ¦ ¹®ÀÚ ¼³Á¤µî¿¡´Â ¿µÇâÀ» ¹ÞÁö ¾Ê´Â´Ù.

Ç¥ÁØ À¯´Ð½º tty µå¶óÀ̹ö´Â (È­»ìÇ¥ °°Àº) Å°¸¦ Ä¿¼­ÀÇ ÇöÀç À§Ä¡¸¦ À̵¿ÇÏ´Â ¶æÀ¸·Î ÀνÄÇÏÁö ¾Ê´Â´Ù. µû¶ó¼­ `ÇöÀç ¹®ÀÚ »èÁ¦' ¸í·Éµµ ¾ø´Ù. ÇÏÁö¸¸ ÄֻܼóÀÇ bash¿¡¼­ ¾Æ·¡¿Í °°ÀÌ

        set editing-mode emacs
        "\e[3~":delete-char
¸¦ ~/.inputrc¿¡ ³Ö¾îÁÖ¸é Delete Å°¸¦ ÀνÄÇϵµ·Ï ÇÒ ¼ö ÀÖ´Ù.

`DEL°ú BS°¡ Àß ÀÛµ¿ÇÏ´ø Getty°¡ Áö±ÝÀº ±úÁ®ÀÖ´Â °ÍÀΰ¡?'

¿¾³¯¿¡´Â ÄÜ¼Ö µå¶óÀ̹ö°¡ DEL (\177)¸¦ ¹ÞÀ¸¸é BS Space BS (\010\040\010)¸¦ ¼öÇàÇϵµ·Ï Çصξú´Ù. ÇÏÁö¸¸ Áö±ÝÀº DELÀº ¹«½ÃµÈ´Ù. (ÀÌ°ÍÀÌ ´ç¿¬ÇÑ °ÍÀÌ µå¶óÀ̹ö´Â vt100À» Èä³»³»±â ¶§¹®ÀÌ´Ù.) DELÀ» Ãâ·ÂÇÏÁö ¾Ê´Â ÃÖ½ÅÀÇ getty¸¦ ±¸Çؼ­ »ç¿ëÇ϶ó.

`ù¹ø° ·Î±×ÀÎ ½Ãµµ¿Í µÎ¹ø° ·Î±×ÀÎ ½Ãµµ°¡ Á» ´Ù¸¥°Í °°´Ù. ÀÌ°ÍÀÌ Á¤»óÀΰ¡?'

ù¹ø° ·Î±×ÀÎ ½Ãµµ´Â getty¿Í À̾߱âÇÏ´Â °ÍÀÌÁö¸¸, µÎ¹ø° ½Ãµµ´Â login°ú À̾߱âÇÏ´Â °ÍÀÌ´Ù. ¼­·Î ´Ù¸¥ ÇÁ·Î±×·¥ÀÌ´Ù.

5.2 ¸®´ª½º¿¡¼­ Å°¸¦ ´©¸¦ ¶§ ¹ß»ýÇÏ´Â Äڵ带 ÁöÁ¤ÇÏ´Â ¹æ¹ý

Äֿܼ¡¼­, Á¤È®È÷ ¸»ÇÏÀÚ¸é raw ¸ðµå°¡ ¾Æ´Ñ °æ¿ì¿¡´Â

        % loadkeys mykeys.map
À̶ó°í ÇÏ¸é µÈ´Ù. X ȯ°æ¿¡¼­´Â
        % xmodmap mykeys.xmap
¸¦ »ç¿ëÇÏ¸é µÈ´Ù. (XFree86-2.1 ÀÌ·¡·Î) X´Â óÀ½ ½ÃÀ۽ÿ¡ X keymapÀ» ÃʱâÈ­ÇÒ ¶§, ¸®´ª½º keymap ¼³Á¤À» Àд´ٴ »ç½Ç¿¡ À¯ÀÇÇ϶ó. ºñ·Ï µÎ ½Ã½ºÅÛÀÌ 100% ȣȯµÇÁö´Â ¾ÊÁö¸¸ ÀÌ·¯ÇÑ »ç½ÇÀº ¸¹Àº °æ¿ì¿¡ xmodmapÀÌ º¸´Ù ¿µÇâ·ÂÀÌ ÀÖ´Ù´Â °ÍÀ» ÀǹÌÇϱ⠶§¹®ÀÌ´Ù.

¿¹¸¦ µé¾î, »ç¿ëÀÚ°¡ ¹é½ºÆäÀ̽º Å°¿¡ BackSpace (^H, 8Áø¼ö 010)À» º¸³»µµ·Ï ÇÏ·Á ÇÏ°í, ȸ»ö Delete Å°·Î´Â DEL (8Áø¼ö·Î 0177)À» º¸³»·Á ÇÑ´Ù¸é, /etc/rc.local (¶Ç´Â »ç¿ëÀÚ¸¸ÀÇ ºÎÆà ¼³Á¤È­ÀÏ¿¡)

        /usr/bin/loadkeys << EOF
        keycode 14 = BackSpace
        keycode 111 = Delete
        EOF
¶ó°í ÷°¡ÇÏ¸é µÈ´Ù. ÀÌ ¼³Á¤Àº ´Ù¸¥ ¼³Á¤À» ¹Ù²ÙÁö ¾Ê¾Ò´Ù¸é µÎ°³ÀÇ Å° ¼³Á¤¸¸ ¹Ù²Û´Ù´Â »ç½Ç¿¡ À¯ÀÇÇÒ ÇÊ¿ä°¡ ÀÖ´Ù. (´Ù¸¥ Å°¸Ê¿¡¼­µµ Å° ¼³Á¤À» ¹Ù²Ù°í ½Í´Ù¸é, ¾î´À Å°¸ÊÀ» ¹Ù²ÜÁö Å°¸Ê ¶óÀÎÀ» ÁöÁ¤ÇØ ÁÖ¾î¾ß ÇÑ´Ù.) ¸®´ª½º Ä¿³ÎÀº µðÆúÆ®·Î Ctrl-Backspace Å°°¡ BackSpace¸¦ ¹ß»ýÇϵµ·Ï µÇ¾î ÀÖ´Ù. ÀÌ°ÍÀº ¶§¶§·Î DEL Äڵ常 »ý±â´Â À§±Þ »óȲ¿¡¼­ ºüÁ®³ª°¡´Âµ¥ À¯¿ëÇÏ´Ù.

¿ÞÂÊ Alt Å°´Â Á¾Á¾ ¸ÞŸŰ¶ó°í ºÎ¸¥´Ù. µðÆúÆ®·Î ¿ÞÂÊ Alt-X Å°Á¶ÇÕÀº MetaX·Î ¼³Á¤µÇ¾î ÀÖ´Ù. ±×·¸´Ù¸é MetaX´Â ¾î¶² Å° ½ÃÄö½ºÀΰ¡? ±×°ÍÀº (°¢°¢ÀÇ tty¿¡¼­) ¸ÞŸ Ç÷¡±×¿¡ ÀÇÇؼ­ °áÁ¤µÈ´Ù. ÀÌ°ÍÀº setmetamode ¸í·ÉÀ¸·Î ¼³Á¤ÇÒ ¼ö ÀÖ´Ù. ESC X¸¦ Ä¡´Â °Í°ú 0200°ú OR¿¬»êÀ» ÇÑ X¸¦ Ä¡´Â µÎ°¡Áö ¹æ¹ýÀÌ Á¸ÀçÇÑ´Ù.

`¿Ö µðÆúÆ®·Î ¹é½ºÆäÀ̽º Å°°¡ BackSpace¸¦ ¹ß»ýÇϵµ·Ï ÇÏÁö ¾Ê¾Ò³ª?'

(i) ¿Ö³ÄÇϸé VT100¿¡´Â Delete Å°°¡ Enter Å° À§¿¡ ÀÖ¾ú±â ¶§¹®ÀÌ´Ù.

(ii) ¶ÇÇÑ ¸®´©½º°¡ ±×·¸°Ô Á¤Ç߱⠶§¹®ÀÌ´Ù.

5.3 X¿¡¼­ Delete¿Í ¹é½ºÆäÀ̽º¸¦ ¹Ù²Ù´Â ¹æ¹ý

        % xmodmap -e "keysym BackSpace = Delete" -e "keysym Delete = BackSpace"
¹é½ºÆäÀ̽º Å°°¡ BackSpace¸¦ ¹ß»ýÇϵµ·Ï ÇÏ·Á¸é
        % xmodmap -e "keycode 22 = BackSpace"
Delete Å°°¡ Delete¸¦ ¹ß»ýÇϵµ·Ï ÇÏ·Á¸é
        % xmodmap -e "keycode 107 = Delete"
(ÇÏÁö¸¸ º¸Åë ÀÌ¹Ì µðÆúÆ®·Î µÇ¾î ÀÖÀ» °ÍÀÌ´Ù.)

5.4 emacs¿¡¼­ Delete³ª Backspace¿¡ ´ëÇÑ µ¿ÀÛ ÁöÁ¤ÇÏ´Â ¹æ¹ý

»ç¿ëÀÚÀÇ .emacs È­ÀÏ¿¡ ´ÙÀ½ ¶óÀÎÀ» Ãß°¡ÇÏ¸é µÈ´Ù.

        (global-set-key "\?" 'help-command)
        (global-set-key "\C-h" 'delete-backward-char)
¹°·Ð ÀÌ·± ¹æ½ÄÀ¸·Î ÇÏ¸é ´Ù¸¥ Å°¿¡µµ ¸í·ÉÀ» ¿¬°á½Ãų ¼ö ÀÖ´Ù. Å° ÀçÁ¤ÀÇ ¹æ½Ä¿¡´Â ¿©·¯°¡Áö major ¹× minor ¹æ½ÄÀÌ ÀÖÀ½À» À¯ÀÇÇÒ ÇÊ¿ä°¡ ÀÖ´Ù. ¿¹¸¦ µé¾î, incremental search ¸ðµå¿¡¼­´Â ´ÙÀ½°ú °°Àº Äڵ尡 ÀÖ´Â °ÍÀ» ¹ß°ßÇÒ ¼ö ÀÖ´Ù.
        (define-key map "\177" 'isearch-delete-char)
        (define-key map "\C-h" 'isearch-mode-help)
ÀÌ°ÍÀ» º¸¸é À§ÀÇ µÎ ¸í·ÉÀ» global Å° ¼³Á¤À¸·Î »ç¿ëÇÏ´Â °ÍÀº º°·Î ÁÁÀº ¹æ¹ýÀÌ ¾Æ´Ï¶ó´Â °ÍÀ» ¾Ë ¼ö ÀÖ´Ù. ¸¹Àº ÇÁ·Î±×·¥¿¡¼­ ^H = help¿Í DEL = delete¶ó´Â °¡Á¤ÇÏ¿¡ Å°¸¦ »ç¿ëÇÑ´Ù. ¹°·Ð ¹Ýµå½Ã ¹é½ºÆäÀ̽º Å°°¡ DELÀ» ¹ß»ýÇϵµ·Ï Å°¸¦ ¼³Á¤Çؾ߸¸ ÇÏ´Â °ÍÀº ¾Æ´Ï´Ù. ±×·¯³ª Å° ¼³Á¤ÀÌ ÀÌ·¸°Ô µÇ¾î ÀÖÁö ¾ÊÀ¸¸é emacs¿¡¼­ »ç¿ëÇÒ ¼ö ÀÖ´Â °¡Àå ³·Àº ·¹º§¿¡¼­´Â ÀÌ Å°µéÀ» Àç¼³Á¤ÇÏ´Â °ÍÀÌ °¡Àå ½¬¿î ¹æ¹ýÀÌ´Ù.

5.5 emacs¿¡¼­ Delete¿Í Backspace¸¦ ¹Ù²Ù´Â ¹æ¹ý

»ç¿ëÀÚÀÇ .emacs È­ÀÏ¿¡ ´ÙÀ½ ¶óÀÎÀ» Ãß°¡ÇÏ¸é µÈ´Ù.

        (setq keyboard-translate-table (make-string 128 0))
        (let ((i 0))
          (while (< i 128)
            (aset keyboard-translate-table i i)
            (setq i (1+ i))))
        (aset keyboard-translate-table ?\b ?\^?)
        (aset keyboard-translate-table ?\^? ?\b)
emacsÀÇ ÃֽŠ¹öÀü¿¡¼­´Â keyboard-translate ÇÔ¼ö¸¦ Á¦°øÇϱ⠶§¹®¿¡ °£´ÜÇÏ°Ô ¾Æ·¡¿Í °°ÀÌ Çصµ µÈ´Ù.
        (keyboard-translate ?\C-h ?\C-?)
        (keyboard-translate ?\C-? ?\C-h)
X ȯ°æ¿¡¼­´Â (Äֿܼ¡¼­ ÀÌ Å°°¡ ¾î¶² Äڵ带 ¸¸µé´ø °£¿¡) emacs°¡ Ctrl-h¿Í ¹é½ºÆäÀ̽º Å°¸¦ ±¸º°ÇÒ ¼ö ÀÖ´Ù. ±×¸®°í emacs´Â µðÆúÆ®·Î ¹é½ºÆäÀ̽º Å°¸¦ DEL·Î °£ÁÖÇÒ °ÍÀÌ´Ù. (¹°·Ð ^H¿¡ ¿¬°áµÈ µµ¿ò¸» ±â´ÉÀÌ ¾Æ´Ï¶ó ¹®ÀÚ¸¦ Áö¿ì´Â ÀÏÀ» ÇÒ °ÍÀÌ´Ù.) ¹é½ºÆäÀ̽º¿Í Delete¸¦ ±¸ºÐÇÏ¿© »ç¿ëÇÏ·Á¸é ´ÙÀ½°ú °°ÀÌ ÇÏ¸é µÈ´Ù.
        (global-unset-key [backspace] )
        (global-set-key [backspace] 'delete-backward-char)
        (global-unset-key [delete] )
        (global-set-key [delete] 'delete-char)

5.6 kermit¿¡¼­ Delete¿Í Backspace¸¦ ¹Ù²Ù´Â ¹æ¹ý

.kermrc È­ÀÏ¿¡ ´ÙÀ½ ¶óÀÎÀ» Ãß°¡ÇÏ¸é µÈ´Ù.

        set key \127 \8
        set key \8 \127

5.7 xterm¿¡¼­ ÀÔ¸À¿¡ ¸Â´Â tty ¸ðµå ¼³Á¤ÇÏ´Â ¹æ¹ý

º¸Åë xtermÀº ÀÌ°ÍÀ» È£ÃâÇÑ ÇÁ·Î±×·¥ÀÇ tty ¸ðµå¸¦ »ó¼Ó¹Þ´Â´Ù. xdm ȯ°æ¿¡¼­´Â ±¸Çü À¯´Ð½º ¹öÀü 6¿¡¼­¿Í °°ÀÌ µðÆúÆ®·Î ¼³Á¤µÈ Áö¿ì±â ¹× Á×À̱⠹®ÀÚ´Â #¿Í @ÀÌ´Ù. ÀÌ ¼³Á¤ÀÌ ¸¶À½¿¡ ¾Èµé¸é ¾Æ·¡ ³»¿ëÀ» /usr/lib/X11/app-defaults/XTerm³ª $HOME/.Xresources¿¡ ³ÖÀ¸¸é µÈ´Ù.

        XTerm*ttymodes: erase ^? kill ^U intr ^C quit ^\ eof ^D \ 
                        susp ^Z start ^Q stop ^S eol ^@
¹°·Ð $HOME/.xinitrc³ª $HOME/.xsession¿¡
        xrdb $HOME/.Xresources
¶ó´Â ±¸ÀýÀÌ ÀÖ¾î¾ß ÀÛµ¿ÇÑ´Ù.

5.8 xmosaic¿¡¼­ Backspace Å°°¡ DELÀ» ¹ß»ýÇϵµ·Ï ¼³Á¤ÇÏ´Â ¹æ¹ý

¾Æ·¡ ³»¿ëÀ» $HOME/.Xresources¿¡ ³ÖÀ¸¸é ÇØ°áµÉ °ÍÀÌ´Ù.

        *XmText.translations: #override\n\
           <Key>osfDelete: delete-previous-character()
        *XmTextField.translations: #override\n\
           <Key>osfDelete: delete-previous-character()

ÇÏÁö¸¸ ³Ý½ºÄÉÀÌÇÁ FAQ¿¡´Â ´ÙÀ½°ú °°Àº ³»¿ëÀÌ ÀÖ´Ù.

        ¿Ö ÅؽºÆ® Çʵ忡¼­ ¹é½ºÆäÀ̽º Å°°¡ ¸»À» µèÁö ¾Ê´Â°¡?
        µðÆúÆ®·Î ¸®´ª½º¿Í XFree86¿¡´Â ¹é½ºÆäÀ̽º¿Í Delete Å°°¡ À߸ø ¼³Á¤µÇ¾î
        ÀÖ´Ù. (³Ý½ºÄÉÀÌÇÁ ³×ºñ°ÔÀÌÅ͸¦ Æ÷ÇÔÇÑ) ¸ðµç ¸ðƼÇÁ ÇÁ·Î±×·¥¿¡¼­
        ¶È°°ÀÌ À߸ø ÀÛµ¿µÉ °ÍÀÌ´Ù.

        ¸ðƼÇÁ ½ºÆå¿¡ º¸¸é ¹é½ºÆäÀ̽º´Â ÀÌÀü ¹®ÀÚ¸¦ Áö¿ìµµ·Ï µÇ¾î ÀÖ°í
        Delete´Â ´ÙÀ½ ¹®ÀÚ¸¦ Áö¿ìµµ·Ï µÇ¾î ÀÖ´Ù. ¸®´ª½º¿Í XFree86Àº
        ¹é½ºÆäÀ̽º¿Í Delete Å°°¡ ¸ðµÎ Delete¸¦ ¹ß»ýÇϵµ·Ï ¼³Á¤µÇ¾î ÀÖ´Ù.

        »ç¿ëÀÚ´Â xmodmap, xkeycaps, loadkeysÁß Çϳª¸¦ »ç¿ëÇÏ¿© ¹®Á¦ÀÇ
        Å°°¡ Delete ´ë½Å¿¡ BackSpace keysymÀ» ¹ß»ýÇϵµ·Ï ÇÒ ¼ö ÀÖ´Ù.

        ´Ù¸¥ ¹æ¹ýÀ¸·Î´Â .motifbind È­ÀÏÀ» ¸¸µé¾î ÇØ°áÇÒ ¼ö ÀÖ´Ù. man ÆäÀÌÁö
        VirtualBindings(3)À» ÂüÁ¶Ç϶ó.

        ÁÖÀÇ: ÀÌ ¹®Á¦¸¦ ÇØ°áÇϱâÀ§ÇØ *XmText.translations³ª
        *XmTextField.translations ¸®¼Ò½º È­ÀÏÀ» »ç¿ëÇÏÁö ¾Ê´Â °ÍÀÌ ÁÁ´Ù.
        ¾Æ¸¶µµ ÀÌ°ÍÀ» °Çµå¸®¸é ³Ý½ºÄÉÀÌÇÁ ³×ºñ°ÔÀÌÅÍÀÇ ´Ù¸¥ ÅؽºÆ® ÇʵåÀÇ
        Å° ¿¬°áÀÌ ¸ðµÎ ¸Á°¡Áú °ÍÀÌ´Ù.

5.9 ³Ý½ºÄÉÀÌÇÁ¿Í °°ÀÌ ¸ðƼÇÁ¸¦ »ç¿ëÇÏ´Â ÇÁ·Î±×·¥ÀÇ ´õ ÁÁÀº ÇØ°áÃ¥

Ted Kandell (ted@tcg.net)ÀÇ ÇØ°áÃ¥Àº ´ÙÀ½°ú °°´Ù.

»ç¿ëÀÚÀÇ .profile È­ÀÏ¿¡ ´ÙÀ½ÀÇ ³»¿ëÀ» ³ÖÀÚ.

stty erase ^H
bash »ç¿ëÀÚ¶ó¸é .inputrc¿¡ ´ÙÀ½ ¶óÀÎÀ» Ãß°¡ÇÑ´Ù.
"\C-?": delete-char
"\C-h": backward-delete-char
.xinitrc È­ÀÏ¿¡´Â ¾Æ·¡ÀÇ ³»¿ëÀ» Ãß°¡ÇÑ´Ù.
xmodmap <<-EOF
keycode 22  =  BackSpace osfBackSpace
keycode 107 =  Delete
EOF

# À©µµ¿ì °ü¸®ÀÚ¸¦ ½ÇÇà½ÃŲ´Ù.
#(fvwm) 2>&1 | tee /dev/tty /dev/console

stty sane
stty erase ^H
loadmap <<-EOF
keycode 14  = BackSpace
keycode 111 = Delete
EOF

ÀÌ·¸°Ô ÇÏ¸é ¸®´ª½º/XFree86 ±â¹ÝÀÇ PC 101 ¶Ç´Â 102 Å°º¸µå¿¡¼­´Â ¹Ýµå½Ã Àß µ¿ÀÛÇÒ °ÍÀÌ´Ù.

³Ý½ºÄÉÀÌÇÁ¿Í °°Àº ¸ðƼÇÁ ÇÁ·Î±×·¥ÀÌ Àß µ¿ÀÛÇϵµ·Ï Çϴµ¥ Áß¿äÇÑ ºÎºÐÀº osfBackSpace¸¦ BackSpace¿Í ÇÔ²² Å°ÄÚµå 22¿¡ ³Ö´Â Á¡ÀÌ´Ù.

= ±âÈ£ ¾çÂÊ¿¡´Â ¹Ýµå½Ã °ø¹éÀÌ ÀÖ¾î¾ß ÇÑ´Ù´Â Á¡µµ À¯ÀÇÇÒ °Í.

5.10 termcap¿Í terminfo´Â ¹¹Áö?

»ç¿ëÀÚµéÀÌ ¹é½ºÆäÀ̽º ¹®Á¦¿¡ ºÎµúÈ÷¸é, ´ë°³ Å͹̳ÎÀÌ »ç¿ëÇÏ´Â termcap (¶Ç´Â terminfo) Ç׸ñÀ» µÚÀû°Å¸°´Ù. ¹°·Ð °Å±â¿¡ º¸¸é kb (¶Ç´Â kbs)¶ó´Â Ç׸ñÀÌ ÀÖ°í, ¹é½ºÆäÀ̽º Å°°¡ ¸¸µå´Â Äڵ忡 ´ëÇÑ ¼³¸íÀÌ ³ª¿Â´Ù. ÇÏÁö¸¸ ±×´ÙÁö ¸¹Àº ÇÁ·Î±×·¥ÀÌ ÀÌ°ÍÀ» »ç¿ëÇÏ´Â °ÍÀº ¾Æ´Ï´Ù. µû¶ó¼­ ¸¸ÀÏ Æ¯Á¤ÇÑ ÇÁ·Î±×·¥¿¡¼­¸¸ ¹®Á¦°¡ ¹ß»ýÇÑ´Ù¸é ¾Æ¸¶µµ ¿øÀÎÀº ´Ù¸¥°÷¿¡ ÀÖÀ» °¡´É¼ºÀÌ ³ô´Ù. ¹°·Ð termcap (terminfo) Ç׸ñÀ» °íÃļ­ ¹®Á¦¸¦ ÇØ°áÇÏ´Â °Íµµ ÁÁÀº »ý°¢ÀÌ´Ù. µÚ¿¡ "TERM º¯¼ö" ºÎºÐÀ» ÂüÁ¶ÇÏ¸é µµ¿òÀÌ µÉ °ÍÀÌ´Ù.


´ÙÀ½ ÀÌÀü Â÷·Ê