mirror of
https://codeberg.org/fairyglade/ly.git
synced 2026-08-19 20:14:19 +02:00
Merge branch 'master' into master
This commit is contained in:
commit
2ed1ffa62e
3 changed files with 7 additions and 3 deletions
|
|
@ -411,7 +411,8 @@ pub fn setCellBoundsChecked(self: *TerminalBuffer, x: isize, y: isize, cell: Cel
|
|||
pub fn reclaim(self: TerminalBuffer) !void {
|
||||
if (self.termios) |termios| {
|
||||
// Take back control of the TTY
|
||||
if (termbox.tb_init() != 0) return error.TermboxReinitFailed;
|
||||
const err = termbox.tb_init();
|
||||
if (err != 0 and err != termbox.TB_ERR_INIT_ALREADY) return error.TermboxReinitFailed;
|
||||
|
||||
if (self.full_color and termbox.tb_set_output_mode(termbox.TB_OUTPUT_TRUECOLOR) != 0) {
|
||||
return error.TermboxSetOutputModeFailed;
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ Join us on Matrix over at [#ly-dm:matrix.org](https://matrix.to/#/#ly-dm:matrix.
|
|||
## Dependencies
|
||||
|
||||
- Compile-time:
|
||||
- zig 0.16.x
|
||||
- zig 0.16.x (you must use a __release version__ of zig; check that `zig version` does not have a `-dev*` suffix)
|
||||
|
||||
- libc
|
||||
|
||||
|
|
@ -95,6 +95,9 @@ $ zig build run
|
|||
> [!IMPORTANT]
|
||||
> While you can run Ly in a terminal emulator as root, it is **not** recommended. If you want to test Ly, please enable its service (as described below) and reboot your machine.
|
||||
|
||||
> [!NOTE]
|
||||
> You can, however, test your configuration file changes like that. Note that you must do Ctrl+C in order to exit Ly.
|
||||
|
||||
The next sections will explain how to use Ly with a variety of init systems. Detailed explanation is only given for systemd, but should be applicable for all.
|
||||
|
||||
> [!NOTE]
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ After=kmsconvt@%i.service
|
|||
Conflicts=kmsconvt@%i.service
|
||||
|
||||
[Service]
|
||||
ExecStart=$PREFIX_DIRECTORY/bin/kmscon --font-engine unifont --vt=%I --seats=seat0 --login -- $PREFIX_DIRECTORY/bin/$EXECUTABLE_NAME --use-kmscon-vt
|
||||
ExecStart=$PREFIX_DIRECTORY/bin/kmscon --font-engine unifont --vt=%I --login -- $PREFIX_DIRECTORY/bin/$EXECUTABLE_NAME --use-kmscon-vt
|
||||
StandardInput=tty
|
||||
UtmpIdentifier=%I
|
||||
TTYPath=/dev/%I
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue