Commit Graph
3 Commits
Author SHA1 Message Date
urly3 432560a1cd fix: freebsd still requires 1-indexed tty (#1048)
## What are the changes about?

I thought it was working as intended but appears I just got lucky when testing.
VT_ACTIVATE still wants them 1-indexed, so increase the parsed value respectively.

My apologies!

## What existing issue(s) does this resolve?

N/A

## Pre-requisites

- [ x ] I have tested & confirmed the changes work locally
- [ x ] I have read and fully adhere to the rules set in the contributing guidelines found in `CONTRIBUTING.md`

Reviewed-on: https://codeberg.org/fairyglade/ly/pulls/1048
Reviewed-by: AnErrupTion <anerruption+codeberg@disroot.org>
2026-08-25 11:29:52 +02:00
urly3 882815343f feat: per tty last user caching (closes #1040) (#1044)
An update to #1042

## What are the changes about?

This no longer creates a new file and instead appends the new save data to the existing file in a backwards compatible way.
It can differentiate by using a prefix to the string (which would usually be the username) of "ly/tty".
Usernames on supported systems aren't able to include a forward slash, and if they could, the chances of those colliding..

The rest follows the last PR:
Fix using saved user list where it shouldn't
Now saves users that weren't previously in the save file (fixes TODO)
Since we save only valid state, the save file is self-cleaning of bad/outdated data

## What existing issue(s) does this resolve?

#1040

## Pre-requisites

- [ x ] I have tested & confirmed the changes work locally (freebsd, void linux)
- [ x ] I have read and fully adhere to the rules set in the contributing guidelines found in `CONTRIBUTING.md`

Reviewed-on: https://codeberg.org/fairyglade/ly/pulls/1044
Reviewed-by: AnErrupTion <anerruption+codeberg@disroot.org>
2026-08-24 15:32:41 +02:00
urly3 fa8332dddd feature: getActiveTerminal for FreeBSD (#1047)
## What are the changes about?

Implements getActiveTerminal for FreeBSD via fstat

## What existing issue(s) does this resolve?

#1046

## Pre-requisites

- [ x ] I have tested & confirmed the changes work locally
- [ x ] I have read and fully adhere to the rules set in the contributing guidelines found in `CONTRIBUTING.md`

Reviewed-on: https://codeberg.org/fairyglade/ly/pulls/1047
Reviewed-by: AnErrupTion <anerruption+codeberg@disroot.org>
2026-08-24 15:30:46 +02:00