Conque SML backspace

非 Y 不嫁゛ 提交于 2019-12-11 01:17:56

问题


I have a problem with SML while running it in vim with conque. If I run the interpreter from the terminal then everything is ok. If I will run it using Conque it will be ok except for the fact that if I use the cursor it will write "^[[C" or "^[[A" or so on. ("^H" for backspace). What can I do?


回答1:


You are probably talking about SML/NJ, in which case the REPL famously lacks readline support (why? I really don't know). I'm guessing those funny keystrokes you're seeing generated are the result of simulated arrow keypresses and such.

Most people irritated by the lack of readline support in SML/NJ use rlwrap. Perhaps you can find a way to make this work with your chosen environment.



来源:https://stackoverflow.com/questions/13100914/conque-sml-backspace

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!