… | |
… | |
1011 | * XTERM_SEQ: CTRL-H |
1011 | * XTERM_SEQ: CTRL-H |
1012 | */ |
1012 | */ |
1013 | void |
1013 | void |
1014 | rxvt_term::scr_backspace () NOTHROW |
1014 | rxvt_term::scr_backspace () NOTHROW |
1015 | { |
1015 | { |
1016 | want_refresh = 1; |
|
|
1017 | |
|
|
1018 | if (screen.cur.col == 0) |
1016 | if (screen.cur.col == 0) |
1019 | { |
1017 | { |
1020 | if (screen.cur.row > 0) |
1018 | if (screen.cur.row > 0) |
1021 | { |
1019 | { |
1022 | #ifdef TERMCAP_HAS_BW |
1020 | #ifdef TERMCAP_HAS_BW |
1023 | screen.cur.col = ncol - 1; |
1021 | screen.cur.col = ncol - 1; |
1024 | screen.cur.row--; |
1022 | --screen.cur.row; |
1025 | return; |
1023 | |
|
|
1024 | want_refresh = 1; |
1026 | #endif |
1025 | #endif |
1027 | } |
1026 | } |
1028 | } |
1027 | } |
1029 | else if (!(screen.flags & Screen_WrapNext)) |
1028 | else |
1030 | scr_gotorc (0, -1, RELATIVE); |
1029 | scr_gotorc (0, -1, RELATIVE); |
1031 | |
|
|
1032 | screen.flags &= ~Screen_WrapNext; |
|
|
1033 | } |
1030 | } |
1034 | |
1031 | |
1035 | /* ------------------------------------------------------------------------- */ |
1032 | /* ------------------------------------------------------------------------- */ |
1036 | /* |
1033 | /* |
1037 | * Process Horizontal Tab |
1034 | * Process Horizontal Tab |
… | |
… | |
1872 | void |
1869 | void |
1873 | rxvt_term::bell_cb (ev::timer &w, int revents) |
1870 | rxvt_term::bell_cb (ev::timer &w, int revents) |
1874 | { |
1871 | { |
1875 | rvideo_bell = false; |
1872 | rvideo_bell = false; |
1876 | scr_rvideo_mode (rvideo_mode); |
1873 | scr_rvideo_mode (rvideo_mode); |
|
|
1874 | refresh_check (); |
1877 | } |
1875 | } |
1878 | #endif |
1876 | #endif |
1879 | |
1877 | |
1880 | /* ------------------------------------------------------------------------- */ |
1878 | /* ------------------------------------------------------------------------- */ |
1881 | void |
1879 | void |
… | |
… | |
2651 | /* convert normal newline chars into common keyboard Return key sequence */ |
2649 | /* convert normal newline chars into common keyboard Return key sequence */ |
2652 | for (unsigned int i = 0; i < len; i++) |
2650 | for (unsigned int i = 0; i < len; i++) |
2653 | if (data[i] == C0_LF) |
2651 | if (data[i] == C0_LF) |
2654 | data[i] = C0_CR; |
2652 | data[i] = C0_CR; |
2655 | |
2653 | |
|
|
2654 | if (priv_modes & PrivMode_BracketPaste) |
|
|
2655 | tt_printf ("\e[200~"); |
|
|
2656 | |
2656 | tt_write (data, len); |
2657 | tt_write (data, len); |
|
|
2658 | |
|
|
2659 | if (priv_modes & PrivMode_BracketPaste) |
|
|
2660 | tt_printf ("\e[201~"); |
2657 | } |
2661 | } |
2658 | |
2662 | |
2659 | /* ------------------------------------------------------------------------- */ |
2663 | /* ------------------------------------------------------------------------- */ |
2660 | /* |
2664 | /* |
2661 | * Respond to a notification that a primary selection has been sent |
2665 | * Respond to a notification that a primary selection has been sent |