… | |
… | |
877 | } |
877 | } |
878 | |
878 | |
879 | if (len <= 0) |
879 | if (len <= 0) |
880 | return; /* not mapped */ |
880 | return; /* not mapped */ |
881 | |
881 | |
882 | if (option (Opt_scrollTtyKeypress)) |
|
|
883 | if (view_start) |
|
|
884 | { |
|
|
885 | view_start = 0; |
|
|
886 | want_refresh = 1; |
|
|
887 | } |
|
|
888 | |
|
|
889 | tt_write (kbuf, (unsigned int)len); |
882 | tt_write_user_input (kbuf, (unsigned int)len); |
890 | } |
883 | } |
891 | |
884 | |
892 | void ecb_cold |
885 | void ecb_cold |
893 | rxvt_term::key_release (XKeyEvent &ev) |
886 | rxvt_term::key_release (XKeyEvent &ev) |
894 | { |
887 | { |
… | |
… | |
4063 | vsnprintf ((char *)buf, 256, fmt, arg_ptr); |
4056 | vsnprintf ((char *)buf, 256, fmt, arg_ptr); |
4064 | va_end (arg_ptr); |
4057 | va_end (arg_ptr); |
4065 | tt_write (buf, strlen (buf)); |
4058 | tt_write (buf, strlen (buf)); |
4066 | } |
4059 | } |
4067 | |
4060 | |
|
|
4061 | /* Write data to the pty as typed by the user. */ |
|
|
4062 | void |
|
|
4063 | rxvt_term::tt_write_user_input (const char *data, unsigned int len) |
|
|
4064 | { |
|
|
4065 | if (option (Opt_scrollTtyKeypress)) |
|
|
4066 | if (view_start) |
|
|
4067 | { |
|
|
4068 | view_start = 0; |
|
|
4069 | want_refresh = 1; |
|
|
4070 | } |
|
|
4071 | |
|
|
4072 | tt_write (data, len); |
|
|
4073 | } |
|
|
4074 | |
4068 | /* ---------------------------------------------------------------------- */ |
4075 | /* ---------------------------------------------------------------------- */ |
4069 | /* Write data to the pty as typed by the user, pasted with the mouse, |
4076 | /* Write data to the pty as typed by the user, pasted with the mouse, |
4070 | * or generated by us in response to a query ESC sequence. |
4077 | * or generated by us in response to a query ESC sequence. |
4071 | */ |
4078 | */ |
4072 | static const unsigned int MAX_PTY_WRITE = 255; // minimum MAX_INPUT |
4079 | static const unsigned int MAX_PTY_WRITE = 255; // minimum MAX_INPUT |