… | |
… | |
2649 | /* convert normal newline chars into common keyboard Return key sequence */ |
2649 | /* convert normal newline chars into common keyboard Return key sequence */ |
2650 | for (unsigned int i = 0; i < len; i++) |
2650 | for (unsigned int i = 0; i < len; i++) |
2651 | if (data[i] == C0_LF) |
2651 | if (data[i] == C0_LF) |
2652 | data[i] = C0_CR; |
2652 | data[i] = C0_CR; |
2653 | |
2653 | |
|
|
2654 | if (priv_modes & PrivMode_BracketPaste) |
|
|
2655 | tt_printf ("\e[200~"); |
|
|
2656 | |
2654 | tt_write (data, len); |
2657 | tt_write (data, len); |
|
|
2658 | |
|
|
2659 | if (priv_modes & PrivMode_BracketPaste) |
|
|
2660 | tt_printf ("\e[201~"); |
2655 | } |
2661 | } |
2656 | |
2662 | |
2657 | /* ------------------------------------------------------------------------- */ |
2663 | /* ------------------------------------------------------------------------- */ |
2658 | /* |
2664 | /* |
2659 | * Respond to a notification that a primary selection has been sent |
2665 | * Respond to a notification that a primary selection has been sent |