Closed heapwolf closed 6 years ago
clibs/term should help ?
I think this is too small of a problem, using the following...
struct winsize term;
ioctl(0, TIOCGWINSZ, &term);
the problem should just be as simple as chopping whatever the length of the output is keeping in mind term.ws_col
. I think. Unless the way im doing it isn't portable?
I think you're right and should be good
should be the width of the terminal.