IPython 5.0 and key bindings in console

后端 未结 3 1219
死守一世寂寞
死守一世寂寞 2021-02-18 16:03

The new release of IPython does not depend any more on readline but uses the pure Python library prompt-toolkit, solving maintenance problems on Apple\

3条回答
  •  名媛妹妹
    2021-02-18 16:18

    You could change xterm's configuration.

    xterm is configurable (and documented). In the xterm manual, the Default Key Bindings section shows the default binding for this key:

                            Alt Return:fullscreen() \n\
    

    You can suppress that binding in more than one way:

    • using the omitTranslation resource to suppress the feature
    • setting the fullscreen resource to never

    However, just suppressing it will not make it send something interesting (xterm ignores the modifier for Enter). Setting a translation resource works, e.g., in your $HOME/.Xdefaults file:

    *VT100*translations:      #override \n\ 
         Alt Return: string("\033[27;3;13~")
    

提交回复
热议问题