xbps-query: use get_maxcols() from xbps-install.
This commit is contained in:
@ -38,17 +38,6 @@ struct list_pkgver_cb {
|
||||
int maxcols;
|
||||
};
|
||||
|
||||
int
|
||||
get_maxcols(void)
|
||||
{
|
||||
struct winsize ws;
|
||||
|
||||
if (ioctl(fileno(stdin), TIOCGWINSZ, &ws) == 0)
|
||||
return ws.ws_col;
|
||||
|
||||
return 80;
|
||||
}
|
||||
|
||||
int
|
||||
list_pkgs_in_dict(struct xbps_handle *xhp,
|
||||
prop_object_t obj,
|
||||
|
Reference in New Issue
Block a user