logoalt Hacker News

mohsen1today at 12:20 PM3 repliesview on HN

here's another gem. src/ink/termio/osc.ts:192–210

  void execFileNoThrow('wl-copy', [], opts).then(r => {
    if (r.code === 0) { linuxCopy = 'wl-copy'; return }
    void execFileNoThrow('xclip', ...).then(r2 => {
      if (r2.code === 0) { linuxCopy = 'xclip'; return }
      void execFileNoThrow('xsel', ...).then(r3 => {
        linuxCopy = r3.code === 0 ? 'xsel' : null
      })
    })
  })

are we doing async or not?

Replies

visargatoday at 4:52 PM

Claude Code says thank you for reporting, I bet they will scan this chat to see what bugs they need to fix asap.

almostdeadguytoday at 4:14 PM

A defining work of the "just vibes" era.

show 1 reply
sudo_mantoday at 12:58 PM

LOOOOOOOOOOL