Comment 7 for bug 328235

Revision history for this message
Tom Edwards (ubuntu-t0m) wrote :

Sorry to be a pain, but I'm reopening this bug as it is affecting me still (in Karmic beta in the deb and the lp:terminator branch).

The behaviour is odd because of the use of "cursor_x" and cursor_y" which have odd behaviour when using scroll bars. These appear not describe to the absolute position of the cursor on the screen, but rather the position of the cursor inside the terminal window. This means that as you add lines to a terminal by pressing enter the value of of cursor_y will continue to increase even though the absolute position on screen has not changed as it scrolling down. This leads to the "odd" behaviour where the terminal moved to is unexpected.

I have modified terminator.py to make the decision about which terminal to choose based on the position of the centre of the current terminal on screen rather than the cursor position. This seems to produce consistent results with fairly complicated configurations and is a more intuitive than the apparent "random" behaviour that occurs with the previous version.

I hope this is welcome.
Kind regards,

Tom