Conversation
When the TTY is too narrow to contain the output, the assumption that a carriage return and whitespace while erase the line no longer holds. Prior to printing, check the number of columns available in the TTY. See alire-project/alire#1329 for a demonstration of the issue.
|
Hi @atalii, we would need this to be working, or at least non-breaking, for the three main OSes Alire runs on. I know that GNATCOLL has a This is to answer your questions, I haven't actually looked in detail at the changes. I hope to do so without too much delay. |
|
Thanks! I briefly looked at GNATCOLL.Terminal. The implementation for Windows is just a few lines of Thanks again! |
|
Sorry to get back to this so late! I just put everything under an Re using Gnatcoll, I don't think it's preelaborate, so it can't be used here. Let me know if that's incorrect, though. Hopefully this all looks good and works as I expect it to - thanks :) |
Would fix alire-project/alire#1329.
I tested only on Linux, and to be honest, I don't quite know what this patch does to platform support. I doubt there's any witchcraft capable of making this work on Windows; I've no idea what MacOS supports; and while I assume the ioctl's are the same on the various BSD's, I didn't check. @mosteo would you be able to clarify what platforms need to be tested?