Compare commits

..

3 Commits

Author SHA1 Message Date
sammyette fb9d30520a
fix(greenhouse): draws/updates after exit by resize 2024-04-27 13:52:07 -04:00
sammyette 521298733e
chore: update changelog 2024-04-27 10:52:00 -04:00
sammyette f8a391e24f
chore: bump version 2024-04-27 10:49:26 -04:00
3 changed files with 22 additions and 14 deletions

View File

@ -1,7 +1,8 @@
# 🎀 Changelog
## Unreleased
## [2.2.3] - 2024-04-27
### Fixed
- Highligher and hinter work now, since it was regressed from the previous minor release.
- `cat` command no longer prints extra newline at end of each file
### Added

View File

@ -271,6 +271,15 @@ end
function Greenhouse:input(char)
end
local function read()
terminal.saveState()
terminal.setRaw()
local c = hilbish.editor.readChar()
terminal.restoreState()
return c
end
function Greenhouse:initUi()
local ansikit = require 'ansikit'
local bait = require 'bait'
@ -280,14 +289,17 @@ function Greenhouse:initUi()
local Page = require 'nature.greenhouse.page'
local done = false
bait.catch('signal.sigint', function()
local function sigint()
ansikit.clear()
done = true
end)
end
bait.catch('signal.resize', function()
local function resize()
self:update()
end)
end
bait.catch('signal.sigint', sigint)
bait.catch('signal.resize', resize)
ansikit.screenAlt()
ansikit.clear(true)
@ -311,15 +323,10 @@ function Greenhouse:initUi()
ansikit.showCursor()
ansikit.screenMain()
end
function read()
terminal.saveState()
terminal.setRaw()
local c = hilbish.editor.readChar()
terminal.restoreState()
return c
self = nil
bait.release('signal.sigint', sigint)
bait.release('signal.resize', resize)
end
return Greenhouse

View File

@ -11,7 +11,7 @@ var (
// Version info
var (
ver = "v2.2.2"
ver = "v2.2.3"
releaseName = "Poppy"
gitCommit string