dvtm

dynamic virtual terminal manager - with my changes
git clone https://pi.duncano.de/git/dvtm.git
Log | Files | Refs | README | LICENSE

commit 369ef91a6502779c1a6fc8453610b130eefb940d
parent 7da673b181625d295df8453c5d9ecaac72d77e06
Author: Mark Edgar <medgar123@gmail.com>
Date:   Tue, 24 Dec 2013 14:06:33 +0100

Remove curs_set(0) calls obviated by 55629a.

Diffstat:
dvtm.c | 9---------
vt.c | 1-
2 files changed, 0 insertions(+), 10 deletions(-)

diff --git a/dvtm.c b/dvtm.c @@ -234,7 +234,6 @@ drawbar() { if (bar.pos == BAR_OFF) return; getyx(stdscr, y, x); - curs_set(0); attrset(BAR_ATTR); mvaddch(bar.y, 0, '['); if (mbstowcs(wbuf, bar.text, sizeof bar.text) == (size_t)-1) @@ -253,8 +252,6 @@ drawbar() { mvaddch(bar.y, screen.w - 1, ']'); attrset(NORMAL_ATTR); move(y, x); - if (is_content_visible(sel)) - curs_set(vt_cursor(sel->term)); wnoutrefresh(stdscr); } @@ -265,7 +262,6 @@ draw_border(Client *c) { wattrset(c->window, (sel == c || (runinall && !c->minimized)) ? SELECTED_ATTR : NORMAL_ATTR); getyx(c->window, y, x); - curs_set(0); mvwhline(c->window, 0, 0, ACS_HLINE, c->w); maxlen = c->w - (2 + sstrlen(TITLE) - sstrlen("%s%sd") + sstrlen(SEPARATOR) + 2); if (maxlen < 0) @@ -282,15 +278,11 @@ draw_border(Client *c) { if (t) c->title[maxlen] = t; wmove(c->window, y, x); - if (is_content_visible(sel)) - curs_set(vt_cursor(sel->term)); } static void draw_content(Client *c) { vt_draw(c->term, c->window, 1, 0); - if (c == sel) - curs_set(vt_cursor(sel->term)); } static void @@ -307,7 +299,6 @@ draw(Client *c) { static void draw_all() { Client *c; - curs_set(0); if (!isarrange(fullscreen)) { for (c = clients; c; c = c->next) { if (c == sel) diff --git a/vt.c b/vt.c @@ -1456,7 +1456,6 @@ void vt_draw(Vt *t, WINDOW * win, int srow, int scol) int sel_col_start, sel_col_end; copymode_get_selection_boundry(t, &sel_row_start, &sel_col_start, &sel_row_end, &sel_col_end, true); - curs_set(0); for (int i = 0; i < b->rows; i++) { Row *row = b->lines + i;