2021-07-03 09:38:26 <john_ceph > crc: I discovered a bug in retro, in the s:get function's handling of backspace.

2021-07-03 09:39:55 what is the bug?

2021-07-03 09:40:27 <john_ceph > crc: When I send a backspace on a full buffer it will drop two elements (backspace and the one before it). When the buffer is empty though, it will drop the backspace and the next element, which is not there.

2021-07-03 09:40:43 <john_ceph > If I understand it correctly, this will walk out of the buffer that way.

2021-07-03 09:41:53 <john_ceph > :check-bs (c-c)

2021-07-03 09:41:53 <john_ceph > bs? [ buffer:get buffer:get drop-pair ] if ;

2021-07-03 09:42:45 <john_ceph > A fix would be to check if the buffer has length 1 and only drop one in that case.

2021-07-03 09:43:13 I will fix this

2021-07-03 09:45:42 <john_ceph > crc: Great, thanks

2021-07-03 09:49:50 <john_ceph > Found it while testing the backspace functionality in impexus. It is not a problem in a line-based CLI, but also happens when setting »'stty_cbreak unix:system« on unix.

2021-07-03 09:53:03 <john_ceph > Backspace is working now and the terminal scrolls properly when it reaches the end.

2021-07-03 12:41:21 john_ceph: this should now be fixed

2021-07-03 14:53:52 <john_ceph > crc: Thanks!

2021-07-03 22:50:00 <rick_carlino1> crc I don't think I reported this one yet, did I? https://todo.sr.ht/~crc_/retroforth/submit

2021-07-03 22:51:29 <rick_carlino1> Apologies if its a repost. I had a creeping suspicion that I brought it up before, but couldn't find anything when searching so perhaps I didn't?

2021-07-03 23:01:51 That should now be fixed, thanks!

2021-07-03 23:29:06 <rick_carlino1> Thanks, crc going to try it on a bare metal 386 soon

2021-07-03 23:29:28 <rick_carlino1> Do you think it will work?

2021-07-03 23:29:36 Hopefully it works...

2021-07-03 23:29:41 <rick_carlino1> I had OK luck with the old DOS vm

2021-07-03 23:30:00 It works under qemu, you'll need a multiboot loader like grub

2021-07-03 23:31:06 It's been a couple of years since I last ran it on actual hardware

Proxy Information
Original URL
gemini://retroforth.org/irclogs/2021-07-03
Status Code
Success (20)
Meta
application/octet-stream
Capsule Response Time
526.491487 milliseconds
Gemini-to-HTML Time
0.530598 milliseconds

This content has been proxied by September (ba2dc).