export lf_width and lf_height as env variables

cc #718 #975
This commit is contained in:
Gokcehan committed 2022-11-13 23:00:13 +03:00
1 parent 459608e096
commit c1bcf71ece
5 files changed
+66 -28

No files matched your search

+6
View File
@@ -1307,6 +1307,12 @@ func (ui *ui) resume() error {
return err
}
func (ui *ui) exportSizes() {
w, h := ui.screen.Size()
os.Setenv("lf_width", strconv.Itoa(w))
os.Setenv("lf_height", strconv.Itoa(h))
}
func anyKey() {
fmt.Print(gOpts.waitmsg)
defer fmt.Print("\n")