Commit Briefs
parser_serialize: fflush() (main)
If the amount of data being written to the FILE pointer ends up being a lot, it's worth fflush()ing on it here, rather then relying on specific callers to do so. This can happen if telescope is fetching HTML content from an HTTP proxy, for example. This helps to improve writes to disk, especially via the write-buffer command.
Merge pull request 'contact: update to use issue tracker' (#47) from thomasadam/telescope:update-contact into main
Reviewed-on: https://codeberg.org/telescope-browser/telescope/pulls/47 Reviewed-by: Omar Polo <op@noreply.codeberg.org>
contact: update to use issue tracker
telescope has a very neat set of instructions on how to report issues -- however, this currently assumes an email address. Instead, update this to use an online issue tracker (Codeberg).
bufio: increase default size
The default read size from the buffer as set to 128 is low, which can make reading from a buffer take an unnecessarily long time. Increase this to 4096, imsg is fine with messages of that size, and this should improve things like page load times. Fixes #44 OK @op
use printf instead of dprintf; for solaris compat
Solaris before 11.4 lacks dprintf(), spotted by vins. Instead of providing a local implementation, since we're using dprintf() just to set the window title, use printf() + fflush().
sun -> lsun; part of the unbreaking on solaris
from vins@pkgsrc.org; thank you!
bump version to 0.11 (tags/0.11)
mailcap: add needsterminal for default mailcap
Add the needsterminal flag for the default mailcap entry.
imsg: allow fdpass on the net socket
it's used to pass the client certificate to the net process so has to be enabled. Issue <https://github.com/telescope-browser/telescope/issues/21> spotted by linuxcult; thank you!
build: macos: set PKG_PATH_CONFIG programatically
Under certain conditions, set PKG_PATH_CONFIG programatically, as in, find all the relevant occurances under /opt/homebrew This is necessary because some CI systems might not do this, and it's a pain having to enumerate dependencies of dependencies. There is a slight downside that ./configure might pause for a few seconds.
build: macos: fix DEFAULT_OPENER
Fix incorrect case for platform.
make forward_line() keep the same column
We should probably instead introduce the concept of ``target column'' but for now this brings back the behaviour pre-point_offset introduction, even if it gets it wrong when tabulator characters are involved.
handle tab characters
tab characters have their width depending on the column they're in, since they extend to the next multiple of 8. (citation needed?) So, keep track of the column when considering the length (in columns) of the text, so that we can render them properly. In the future we might want to turn them into spaces (either at read or render time) just to stay on the safe side in case not all terminals/ncurses implementations use 8 columns.
fix pledges; ui needs `sendfd'
we need to send a file descriptor to the net process when we use a custom client certificate. Don't know how I missed it...
