mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-18 03:25:55 +00:00
bsd fbuf implementation #1977
This commit is contained in:
parent
07b7e0c13f
commit
ffbebe9b8f
@ -17,6 +17,8 @@ extern "C" {
|
||||
// come after. uses mmap (with huge pages, if possible) on unix and
|
||||
// virtualalloc on windows. it can grow arbitrarily large. it does
|
||||
// *not* maintain a NUL terminator, and can hold binary data.
|
||||
// on Windows, we're using VirtualAlloc(). on BSD, we're using realloc().
|
||||
// on Linux, we're using mmap()+mremap().
|
||||
|
||||
typedef struct fbuf {
|
||||
uint64_t size;
|
||||
|
@ -679,6 +679,8 @@ int interrogate_terminfo(tinfo* ti, int fd, unsigned utf8, unsigned noaltscreen,
|
||||
// FIXME set up pixel-drawing API for framebuffer #1369
|
||||
}
|
||||
}
|
||||
#else
|
||||
(void)nonewfonts;
|
||||
#endif
|
||||
if(fd >= 0){
|
||||
if(tcgetattr(fd, &ti->tpreserved)){
|
||||
|
Loading…
Reference in New Issue
Block a user