pub fn normal_mouse_report(position: Position, button: u8) -> Vec<u8> {
    let Position { line, column } = position;

    let mut command = vec![b'\x1b', b'[', b'M', 32 + button];
    command.push(32 + 1 + column.0 as u8);
    command.push(32 + 1 + line.0 as u8);

    command
}
// simplified, slighty adapted version of alacritty mouse reporting code
simplified, slighty adapted version of alacritty mouse reporting code
simplified slighty adapted version of alacritty mouse reporting code
pub fn normal_mouse_report(position: Position, button: u8) -> Vec<u8> {
    let Position { line, column } = position;
    let mut command = vec![b'\x1b', b'[', b'M', 32 + button];
    command.push(32 + 1 + column.0 as u8);
    command.push(32 + 1 + line.0 as u8);
    command
}
pub fn normal_mouse_report ( position : Position , button : u8 ) -> Vec < u8 > { let Position { line , column } = position ; let mut command = vec ! [ b'\x1b' b'[' b'M' 32 button ] ; command . push ( 32 + 1 + column . 0 as u8 ) ; command . push ( 32 + 1 + line . 0 as u8 ) ; command }
simplified, slighty adapted version of alacritty mouse reporting code
simplified slighty adapted version of alacritty mouse reporting code
position
Position
button
u8