tyfuzz: support hyperlinks

This commit is contained in:
Boris Faure 2018-10-17 22:54:03 +02:00
parent dd8e9cedcc
commit 5e06ee1d78
1 changed files with 4 additions and 0 deletions

View File

@ -84,6 +84,10 @@ _termpty_init(Termpty *ty)
ty->fd = STDIN_FILENO;
ty->fd_dev_null = open("/dev/null", O_WRONLY|O_APPEND);
assert(ty->fd_dev_null >= 0);
ty->hl.bitmap = calloc(1, HL_LINKS_MAX / 8); /* bit map for 1 << 16 elements */
assert(ty->hl.bitmap);
/* Mark id 0 as set */
ty->hl.bitmap[0] = 1;
}
static void