Open trainman419 opened 10 years ago
The printing happens around here: https://github.com/ros/ros_comm/blob/81f12203e055371124ebfb71123368e91d5b069e/tools/rosbag/src/player.cpp#L266
In order to adapt the code should dynamically scale the right padding based on the width of the terminal. That way it can truncate it on narrow terminal and still overwrite trailing text on wide terminals. This would also require to handle the signal when the terminal width is changed.
Since we won't have time to work on this feature please consider providing a pull request for it.
Related: rosbag play doesn't appear to set the terminal flags back when it is done. I have to run stty sane
before I can use sudo and vim properly.
I'm seeing two separate but related issues with the status line from rosbag play: