aboutsummaryrefslogtreecommitdiff
path: root/include/connection.h
diff options
context:
space:
mode:
authorKenny Levinsen <kl@kl.wtf>2020-09-22 00:54:51 +0200
committerKenny Levinsen <kl@kl.wtf>2020-09-22 01:14:24 +0200
commit521d95349f6aced729192054e24cd04757f4f2ad (patch)
treedf051295700c07adc0eedccf86d83d9b7b76b1bc /include/connection.h
parent0132841987f4a847e91d3592162340af425f3c55 (diff)
terminal: Fix VT numbering on FreeBSD
FreeBSD adds one to the VT number returned by the GET_ACTIVE ioctl, so to match things up, the wrapper here subtracted by one. This lead to ttyv0 being named VT 0. This had the side-effect of VT numbering not matching expectations, and switching not behaving as intended. Align numbers with expectations, and move the required subtraction to terminal_open, so that VT 1 matches ttyv0.
Diffstat (limited to 'include/connection.h')
0 files changed, 0 insertions, 0 deletions