projects
/
oftp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
download, progress, improved screen updates...
[oftp]
/
src
/
unix
/
tgfx.c
diff --git
a/src/unix/tgfx.c
b/src/unix/tgfx.c
index
d228227
..
f36ecce
100644
(file)
--- a/
src/unix/tgfx.c
+++ b/
src/unix/tgfx.c
@@
-24,6
+24,7
@@
void tg_init(void)
keypad(stdscr, TRUE);
nodelay(stdscr, TRUE);
noecho();
keypad(stdscr, TRUE);
nodelay(stdscr, TRUE);
noecho();
+ curs_set(0);
start_color();
fgcol = curses_color(TGFX_WHITE);
start_color();
fgcol = curses_color(TGFX_WHITE);
@@
-133,6
+134,20
@@
void tg_rect(const char *label, int x, int y, int xsz, int ysz, unsigned int fla
}
attroff(COLOR_PAIR(cur_pair));
}
attroff(COLOR_PAIR(cur_pair));
+ refresh();
+}
+
+int tg_gchar(int gchar)
+{
+ switch(gchar) {
+ case TGFX_LARROW:
+ return ACS_LARROW;
+ case TGFX_RARROW:
+ return ACS_RARROW;
+ default:
+ break;
+ }
+ return '@';
}
static int curses_color(int col)
}
static int curses_color(int col)