Git Product home page Git Product logo

Comments (5)

Ra1ny-Yuki avatar Ra1ny-Yuki commented on August 16, 2024

补充一点,在linux上启用后删除命令行中已输入的中文仍然只删除半个(说仍然是因为MCDR本身就这样)

from rawinput_mcdr.

zyxgad avatar zyxgad commented on August 16, 2024

from rawinput_mcdr.

Ra1ny-Yuki avatar Ra1ny-Yuki commented on August 16, 2024

补充一下,mcdr2.0已经有了类似的解决方案了,使用prompt-toolkit模块。如果这插件还要继续做下去应该考虑一下向下兼容MCDR1.x和0.x(老版本还是有钉子户的

from rawinput_mcdr.

zyxgad avatar zyxgad commented on August 16, 2024

尝试于FreeBSD安装该插件,加载时提示模块termios缺少属性,尝试卸载该插件或关闭服务端时,MCDR会疯狂地跳log,至于log中的操作MCDR是否真的实际执行了尚不可知

其中一次MCDR的运行log见:https://paste.ubuntu.com/p/DPNkzjBFrQ/

Fallen说在Windows上一输入就EOF Error

望早日拿出一个多平台通用的实现

以上

我看了一下,疯狂跳interrupt日志是由于不停的在readline当中raise KeyboardInterrupt导致的,这个问题以及通过修改 ConsoleHandler.tick这个方法解决.
至于windows报错EOFError可能是以前的代码当中有些不适用于windows的地方(就是代码逻辑写错了)导致出错, 不过由于我暂时还没有windows系统所以也无法测试新版本是否跨windows平台

from rawinput_mcdr.

zyxgad avatar zyxgad commented on August 16, 2024

所有您说的问题基本都在v1.1.1版本中修复,包括:

  • 对windows系统的支持
  • 对于宽字符的粗暴处理进一步优化(即对中文字符的删除等等)
  • 自动识别mcdr 2.0+ advanced_console是否被启用,如果启用则自动禁用本插件
    对于windows系统仍然存在一个找不到原因的bug
  • 无法使用MCDR指令

from rawinput_mcdr.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.