mirror of
https://github.com/tmate-io/tmate.git
synced 2024-11-08 09:14:22 +01:00
Minor tweaks/missed bits.
This commit is contained in:
parent
76c8a590db
commit
80e30f693c
10
screen.c
10
screen.c
@ -1,4 +1,4 @@
|
||||
/* $Id: screen.c,v 1.50 2007-11-27 19:23:34 nicm Exp $ */
|
||||
/* $Id: screen.c,v 1.51 2007-11-27 19:32:15 nicm Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||
@ -323,6 +323,14 @@ screen_draw_start(struct screen_draw_ctx *ctx, struct screen *s,
|
||||
ctx->write(ctx->data, TTY_CURSOROFF);
|
||||
}
|
||||
|
||||
/* Set offset. */
|
||||
void
|
||||
screen_draw_set_offset(struct screen_draw_ctx *ctx, u_int ox, u_int oy)
|
||||
{
|
||||
ctx->ox = ox;
|
||||
ctx->oy = oy;
|
||||
}
|
||||
|
||||
/* Set selection. */
|
||||
void
|
||||
screen_draw_set_selection(struct screen_draw_ctx *ctx,
|
||||
|
3
tmux.h
3
tmux.h
@ -1,4 +1,4 @@
|
||||
/* $Id: tmux.h,v 1.101 2007-11-27 19:23:34 nicm Exp $ */
|
||||
/* $Id: tmux.h,v 1.102 2007-11-27 19:32:15 nicm Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||
@ -833,6 +833,7 @@ void screen_draw_start_session(
|
||||
void screen_draw_start(struct screen_draw_ctx *, struct screen *s,
|
||||
void (*)(void *, int, ...), void *, u_int, u_int);
|
||||
void screen_draw_stop(struct screen_draw_ctx *);
|
||||
void screen_draw_set_offset(struct screen_draw_ctx *, u_int, u_int);
|
||||
void screen_draw_set_selection(
|
||||
struct screen_draw_ctx *, int, u_int, u_int, u_int, u_int);
|
||||
int screen_draw_check_selection(struct screen_draw_ctx *, u_int, u_int);
|
||||
|
3
tty.c
3
tty.c
@ -1,4 +1,4 @@
|
||||
/* $Id: tty.c,v 1.1 2007-11-27 19:23:34 nicm Exp $ */
|
||||
/* $Id: tty.c,v 1.2 2007-11-27 19:32:15 nicm Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||
@ -74,6 +74,7 @@ tty_open(struct tty *tty, char **cause)
|
||||
break;
|
||||
default:
|
||||
xasprintf(cause, "unknown error");
|
||||
break;
|
||||
}
|
||||
return (-1);
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $Id: window-copy.c,v 1.10 2007-11-27 19:23:34 nicm Exp $ */
|
||||
/* $Id: window-copy.c,v 1.11 2007-11-27 19:32:15 nicm Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||
@ -120,6 +120,7 @@ window_copy_draw(
|
||||
data->oy += s->hsize - data->size;
|
||||
data->size = s->hsize;
|
||||
}
|
||||
screen_draw_set_offset(ctx, data->ox, data->oy);
|
||||
|
||||
if (py != 0)
|
||||
screen_draw_lines(ctx, py, ny);
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $Id: window-scroll.c,v 1.13 2007-11-27 19:23:34 nicm Exp $ */
|
||||
/* $Id: window-scroll.c,v 1.14 2007-11-27 19:32:15 nicm Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||
@ -86,6 +86,7 @@ window_scroll_draw_position(struct window *w, struct screen_draw_ctx *ctx)
|
||||
|
||||
screen_draw_move_cursor(ctx, screen_size_x(ctx->s) - len, 0);
|
||||
screen_draw_set_attributes(ctx, 0, status_colour);
|
||||
screen_draw_write_string(ctx, "%s", ptr);
|
||||
}
|
||||
|
||||
void
|
||||
@ -99,6 +100,7 @@ window_scroll_draw(
|
||||
data->oy += s->hsize - data->size;
|
||||
data->size = s->hsize;
|
||||
}
|
||||
screen_draw_set_offset(ctx, data->ox, data->oy);
|
||||
|
||||
if (py != 0)
|
||||
screen_draw_lines(ctx, py, ny);
|
||||
|
Loading…
Reference in New Issue
Block a user