--- Readline.readline([prompt, [add_hist]])
    桼ΥϤᡢϤʸ֤ޤEOF(UNIX 
     ^D)Ϥ nil ֤ޤ

    ϻˤϹԽǽǡvi ⡼ɤ Emacs ⡼ɤѰդƤޤ
    (Readline.vi_editing_modeReadline.emacs_editing_mode
    򻲾)ǥեȤ Emacs ⡼ɤǤ

    ʸ prompt ꤹȥˤʸɽޤ

    add_hist ʤСϤʸϥҥȥ˵Ͽޤ
    Emacs ⡼ɤʤ ^P Ϥ뤳ȤϤʸƤӽФ
    ꡢReadline::HISTORY ⥸塼ˤҥȥƤ
    뤳ȤǤޤΥǥեͤ nil Ǥ

    : 
      Ԥξ֤ ^C  ruby 󥿥ץ꥿Ȥ⽪λü
      ֤ޤ󡣤򤹤ˤϡ

        stty_save = `stty -g`.chomp
        begin
          while buf = Readline.readline
              p buf
          end
        rescue Interrupt
          system("stty", stty_save)
          exit
        end

      ޤϡ

        stty_save = `stty -g`.chomp
        trap("INT") { system "stty", stty_save; exit }

        while buf = Readline.readline
          p buf
        end

      ʤɤȤޤñˡ^C դʤʤаʲǽʬǤ

        trap("INT", "SIG_IGN")

        while buf = Readline.readline
          p buf
        end

