dnkl changed the topic of #foot to: Foot - fast, lightweight and minimalistic Wayland terminal emulator || 1.14.0 || https://codeberg.org/dnkl/foot || channel logs: https://libera.irclog.whitequark.org/foot
fraolt_ has quit [Ping timeout: 260 seconds]
fraolt_ has joined #foot
Biolunar has quit [Quit: brb]
Biolunar has joined #foot
Ordoviz has joined #foot
alexherbo2 has joined #foot
alexherbo2 has quit [Remote host closed the connection]
alexherbo2 has joined #foot
tawonga has quit [Quit: WeeChat 4.0.0]
alexherbo2 has quit [Remote host closed the connection]
alexherbo2 has joined #foot
alexherbo2 has quit [Remote host closed the connection]
alexherbo2 has joined #foot
alexherbo2 has quit [Remote host closed the connection]
avane has quit [Ping timeout: 246 seconds]
avane has joined #foot
alexherbo2 has joined #foot
avane has quit [Remote host closed the connection]
avane has joined #foot
ayushnix has joined #foot
erectus has quit [Ping timeout: 240 seconds]
erectus has joined #foot
erectus has quit [Remote host closed the connection]
erectus has joined #foot
alexherbo2 has quit [Remote host closed the connection]
ayushnix has quit [Ping timeout: 246 seconds]
alexherbo2 has joined #foot
alexherbo2 has quit [Remote host closed the connection]
alexherbo2 has joined #foot
alexherbo2 has quit [Remote host closed the connection]
alexherbo2 has joined #foot
Ordoviz has quit [Quit: WeeChat 4.0.0]
Ordoviz has joined #foot
alexherbo2 has quit [Remote host closed the connection]
Ordoviz has quit [Quit: WeeChat 4.0.0]
zdykstra has joined #foot
alexherbo2 has joined #foot
alexherbo2 has quit [Remote host closed the connection]
<WhyNotHugo> Odd, I have a much shorter snippet for that: https://git.sr.ht/~whynothugo/dotfiles/tree/main/item/home/.zshrc#L73-78
<brocellous> WhyNotHugo: scrolling by LINES-1 will add blanks in teh scrollback for every line below the cursor
<brocellous> If you want it compact (so that scrolling up by 1 gives you the most recent output line) you have to either print a screen of newlines to get it to scroll just enough, or calculate the scroll based on the cursor position.
<brocellous> I hit ctrl-l a lot, so inserting nearly a full screen of blanks everytime into the scrollback makes the scrollback a lot less useful.
<WhyNotHugo> brocellous: Oh, this is so much nicer! I hope you succeed in adding this to the wiki, thanks!
<brocellous> it tries to calculate the corretc scroll based on teh cursor position, and tries to consider for multibuffer commands (in addition to multiline buffers)
<brocellous> unfortunately read/write to the TTY within a zle widget isn't technically supported. In this case I think it will always work, but zle can be gnarly and it is considered a hack.
<brocellous> zshzle(1) documents that reading from the tty may unintentionally block zle.
<brocellous> So, last night, I finally came up with a version that does not read from the tty and gives the correct scroll behavior
<brocellous> I found that without the \e7/\e8 cursor save/restore escapes foot would sometimes draw the cursor in position 1,1 before the prompt was redrawn by zsh so I added them in to avoid that brief flash
alexherbo2 has joined #foot
alexherbo2 has quit [Remote host closed the connection]