-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Kilo editor - problem erasing characters #618
Comments
You cannot properly remove characters from an input file with kilo.
Interesting coincidence, @georgp24.
I tried kilo (first time ever) yesterday while researching keypad arrow key problems, and found it severely lacking, including some of the errors you report.
Even w/o the editing and cursor positioning problems, kilo is currently useless on anything other than a fast emulator because every cursor movement, every insert, every delete cause repainting the screen - from the cursor position and out. Imagine this on a 9600 or 4800 serial line...
Nothing that cannot be fixed - it's now on my list, and probably on someone else's too.
…--Mellvik
You cannot properly remove characters from an input file with kilo.
|
I think for 9600 baud you better use vi as an editor. I think kilo is an interesting alternative for vi to be used at the console. |
Hello Georg, thanks for the bug report and actually using ELKS applications :) Sadly, it seems that backspace to remove characters doesn't work either - take your same file of 12345678, go the end of the line and backspace to remove 2 characters and save. But then again, that's not surprising, since forward-delete uses "move cursor forward by one, then delete character" to work. The However, it's buggy. Anyone have time to take a quick look at it and fix it? |
BTW, a quick check of the antirez/kilo source shows that someone has submitted a patch for what could be this problem... antirez/kilo@c4c18df There are also other fixes that could be of interest. antirez/kilo@9c03efa These should be looked at individually, rather than applying his large patch as a whole. |
This PR implements multiline, I have the impression this fixes a problem with DEL and multiline. Greg, I think you already took a close look at this editor, so it may be easy for you to fix it. Also, it may be a problem on ELKS because I cannot believe that all these developers post PRs at the kilo site and did not observe this very obvious bug. |
I downloaded kilo and compiled it with gcc on my SUSE Linux. It works fine there and the problem I reported with ELKS is not present. |
Thanks for the testing. There were several changes made to kilo for the port to ELKS. This means one of them created this bug, or that the ELKS ANSI console is still buggy. I just tested kilo using serial console (which uses the host system's terminal emulator, just like running kilo natively), and found that kilo is buggy using delete character. I'll look in to fixing it. |
The del key does work now. Thank you! |
You cannot properly remove characters from an input file with kilo.
I observed the following: when I make a new file and enter in there
12345678
and then press Ctrl-s and Ctrl-q, a file with this content is generated. When I load the file again, I pressdel
four times so only5678
remains. After Ctrl-s and Ctrl-q, I load the file again. The file then contains:However, it should just contain
5678
, the second line is a bug. If you try to erase again further lines will be added when saving.The text was updated successfully, but these errors were encountered: