Scroll to end of window?
Posted: Fri Feb 09, 2018 5:10 pm
I'm likely missing something obvious -
I'm making some changes to the demonnic chat package that had required me to use the hecho/hechoLink functions to copy lines into the windows. The previous code was using :append
:append scrolls the window when a line is added to the end, but hecho/hechoLink don't appear to. I have to move the mouse to the window and manually scroll down to see the line that was just added to the end of it. Was there a command I should be using subsequent to the hecho to force it to scroll?
(edit)
Figured out a way to manage it: If I hecho without a \n, then followup with :append on the same window with a blank line copied, it places a newline after the hecho text and scrolls the window.
(edit2)
-- terminate line
deselect()
copy()
appendBuffer(self.name)
I'm making some changes to the demonnic chat package that had required me to use the hecho/hechoLink functions to copy lines into the windows. The previous code was using :append
:append scrolls the window when a line is added to the end, but hecho/hechoLink don't appear to. I have to move the mouse to the window and manually scroll down to see the line that was just added to the end of it. Was there a command I should be using subsequent to the hecho to force it to scroll?
(edit)
Figured out a way to manage it: If I hecho without a \n, then followup with :append on the same window with a blank line copied, it places a newline after the hecho text and scrolls the window.
(edit2)
-- terminate line
deselect()
copy()
appendBuffer(self.name)