terminalforlife/ShellProjects

AutoExec: Characters Breaking Terminal on Scroll

Closed this issue · 2 comments

Referring to what was brought up by @dev-casual's in issue #4:

Only thing bugging me, but that is really nitpicky and not worth any hassle, is >that I sometimes scroll in autoexec which leads to terminal breakage with the >characters.

Do you mean scrolling with the mouse wheel? I wish there were a way for AE to do its thing but us also be able to scroll through the output; it can be annoying to have to re-execute outside of AE, just to read up; it doesn't happen to me often, but it happens. I could add an unsupported 'feature' which uses a pager like less(1).

OH. Idea! Maybe if I grab less(1)'s PID I can have AE kill it when it detects the file's been touched; that would be almost perfect, if only paging didn't interfere with AE's own interface-of-sorts. I'll look into that, too.

OH! I forgot there's a way to turn off 'echo' (not the builtin), which basically stops any input displaying on the terminal. If it's possible to do that but also maintain control of AE, so the user can ^C it, then that would be golden. I'll look into that in a bit.

I can see the scrolling to be handy in small terminal windows for longer outputs. But as I said, for one-liners it is more than sufficent. Nice train of thought there btw :)