Lines Matching defs:wp

77 	struct window_pane     *wp;
811 input_init(struct window_pane *wp, struct bufferevent *bev,
817 ictx->wp = wp;
858 struct window_pane *wp = ictx->wp;
862 if (clear && wp != NULL) {
863 if (TAILQ_EMPTY(&wp->modes))
864 screen_write_start_pane(sctx, wp, &wp->base);
866 screen_write_start(sctx, &wp->base);
956 input_parse_pane(struct window_pane *wp)
961 new_data = window_pane_get_new_data(wp, &wp->offset, &new_size);
962 input_parse_buffer(wp, new_data, new_size);
963 window_pane_update_used_data(wp, &wp->offset, new_size);
968 input_parse_buffer(struct window_pane *wp, u_char *buf, size_t len)
970 struct input_ctx *ictx = wp->ictx;
976 window_update_activity(wp->window);
977 wp->flags |= PANE_CHANGED;
980 if (!TAILQ_EMPTY(&wp->modes))
981 wp->flags |= PANE_UNSEENCHANGES;
983 /* NULL wp if there is a mode set as don't want to update the tty. */
984 if (TAILQ_EMPTY(&wp->modes))
985 screen_write_start_pane(sctx, wp, &wp->base);
987 screen_write_start(sctx, &wp->base);
989 log_debug("%s: %%%u %s, %zu bytes: %.*s", __func__, wp->id,
1216 struct window_pane *wp = ictx->wp;
1231 if (wp != NULL)
1232 alerts_queue(wp->window, WINDOW_BELL);
1894 struct window_pane *wp = ictx->wp;
1899 if (wp != NULL)
1900 w = wp->window;
1972 if (wp == NULL)
1974 notify_pane("pane-title-changed", wp);
2322 struct window_pane *wp = ictx->wp;
2330 if (wp == NULL)
2338 allow_passthrough = options_get_number(wp->options, "allow-passthrough");
2367 struct window_pane *wp = ictx->wp;
2390 if (wp != NULL &&
2391 options_get_number(wp->options, "allow-set-title") &&
2393 notify_pane("pane-title-changed", wp);
2394 server_redraw_window_borders(wp->window);
2395 server_status_window(wp->window);
2404 if (wp != NULL) {
2405 server_redraw_window_borders(wp->window);
2406 server_status_window(wp->window);
2462 struct window_pane *wp = ictx->wp;
2468 if (screen_set_title(sctx->s, ictx->input_buf) && wp != NULL) {
2469 notify_pane("pane-title-changed", wp);
2470 server_redraw_window_borders(wp->window);
2471 server_status_window(wp->window);
2490 struct window_pane *wp = ictx->wp;
2494 if (wp == NULL)
2498 if (!options_get_number(ictx->wp->options, "allow-rename"))
2504 w = wp->window;
2668 input_get_fg_client(struct window_pane *wp)
2670 struct window *w = wp->window;
2687 input_get_bg_client(struct window_pane *wp)
2689 struct window *w = wp->window;
2709 input_get_bg_control_client(struct window_pane *wp)
2713 if (wp->control_bg == -1)
2718 return (wp->control_bg);
2728 input_get_fg_control_client(struct window_pane *wp)
2732 if (wp->control_fg == -1)
2737 return (wp->control_fg);
2746 struct window_pane *wp = ictx->wp;
2751 if (wp == NULL)
2753 c = input_get_fg_control_client(wp);
2755 tty_default_colours(&defaults, wp);
2757 c = input_get_fg_client(wp);
2771 if (wp != NULL)
2772 wp->flags |= PANE_STYLECHANGED;
2781 struct window_pane *wp = ictx->wp;
2787 if (wp != NULL)
2788 wp->flags |= PANE_STYLECHANGED;
2797 struct window_pane *wp = ictx->wp;
2802 if (wp == NULL)
2804 c = input_get_bg_control_client(wp);
2806 tty_default_colours(&defaults, wp);
2808 c = input_get_bg_client(wp);
2822 if (wp != NULL)
2823 wp->flags |= PANE_STYLECHANGED;
2832 struct window_pane *wp = ictx->wp;
2838 if (wp != NULL)
2839 wp->flags |= PANE_STYLECHANGED;
2848 struct window_pane *wp = ictx->wp;
2852 if (wp != NULL) {
2902 struct window_pane *wp = ictx->wp;
2914 if (wp == NULL)
2953 screen_write_start_pane(&ctx, wp, NULL);
2956 notify_pane("pane-set-clipboard", wp);