PerBothner / DomTerm

DOM/JavaScript-based terminal-emulator/console

Home Page:https://domterm.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Issues with micro and nano

artemgur opened this issue · comments

I use the latest Appimage release.

In nano and micro text editors, Enter key doesn't create a new line.

And scrolling with mouse wheel doesn't work correctly in micro. In micro, scrolling with mouse wheel should scroll the document, like in GUI text editors. In domterm, the document does scroll, but also the entire terminal scrolls out of the micro window to the command history.

"In nano and micro text editors, Enter key doesn't create a new line."

I was able to reproduce this, using nano and the current git head. I'll take a look.

The problem is what to send when Enter is pressed: CR, NL, or NR+NL. Nano and Micro are a bit picker than most ediors, and require CR, not NL. DomTerm should send CR, not NL, but there are some complications. As a short-term work-around you can type ^M (control-M) instead of Enter, but I'll try to fix this and make a new AppImage ASAP.

I checked in a fix. I also created a new 2.9.4 AppImage release including the fix and a number of updates. Please try it out.

Now enter works fine both in nano and micro, thanks!