projects
/
visor
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
foo
[visor]
/
visor
/
src
/
term.c
diff --git
a/visor/src/term.c
b/visor/src/term.c
index
5a167a6
..
d98d0ac
100644
(file)
--- a/
visor/src/term.c
+++ b/
visor/src/term.c
@@
-19,7
+19,7
@@
int term_init(const char *ttypath)
struct termios term;
struct winsize winsz;
- if((ttyfd = open("/dev/tty", O_RDWR)) == -1) {
+ if((ttyfd = open(ttypath ? ttypath : "/dev/tty", O_RDWR)) == -1) {
perror("failed to open /dev/tty");
return -1;
}