[object Object]

← back to Ken

auto-save: 2026-08-03T12:23:59 (1 files) — kalshi-dash/ken-trade-flash.sh

07bb41167c4cffabeb954ffbb610be1ef48e16e7 · 2026-08-03 12:24:15 -0700 · Steve Abrams

Files touched

Diff

commit 07bb41167c4cffabeb954ffbb610be1ef48e16e7
Author: Steve Abrams <steve@designerwallcoverings.com>
Date:   Mon Aug 3 12:24:15 2026 -0700

    auto-save: 2026-08-03T12:23:59 (1 files) — kalshi-dash/ken-trade-flash.sh
---
 kalshi-dash/ken-trade-flash.sh | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

diff --git a/kalshi-dash/ken-trade-flash.sh b/kalshi-dash/ken-trade-flash.sh
new file mode 100755
index 0000000..50eb49c
--- /dev/null
+++ b/kalshi-dash/ken-trade-flash.sh
@@ -0,0 +1,34 @@
+#!/bin/bash
+# ken-trade-flash.sh — flash "NEW TRADE BY KEN" in blinking red on the CURRENT iTerm2 pane.
+# Resolves this session's pane tty from the ITERM_SESSION_ID guid via iTerm2 AppleScript,
+# then writes a bold blinking bright-red banner + terminal bells straight to that tty device
+# (not via 'write text', so it paints on screen without injecting into the Claude prompt).
+# Usage: ken-trade-flash.sh "TICKER side count @ price"   [detail line optional]
+DETAIL="${1:-}"
+GUID="${ITERM_SESSION_ID##*:}"; [ -z "$GUID" ] && GUID="${TERM_SESSION_ID##*:}"
+TTY=$(osascript 2>/dev/null <<OSA
+tell application "iTerm2"
+  repeat with w in windows
+    repeat with t in tabs of w
+      repeat with s in sessions of t
+        if (id of s) is "$GUID" then return tty of s
+      end repeat
+    end repeat
+  end repeat
+end tell
+OSA
+)
+if [ -z "$TTY" ] || [ ! -w "$TTY" ]; then echo "ken-trade-flash: could not resolve a writable tty ($TTY)"; exit 1; fi
+RED=$'\033[1;5;97;101m'   # bold + blink + white text on bright-red background
+RESET=$'\033[0m'
+BLANK="                                              "
+for i in $(seq 1 14); do
+  { printf '\a'
+    printf '\n%s   🔴  NEW TRADE BY KEN  🔴   %s\n' "$RED" "$RESET"
+    [ -n "$DETAIL" ] && printf '%s   %s   %s\n' "$RED" "$DETAIL" "$RESET"
+  } > "$TTY" 2>/dev/null
+  sleep 0.28
+  printf '\r%s\r' "$BLANK" > "$TTY" 2>/dev/null
+  sleep 0.18
+done
+printf '%s\n' "$RESET" > "$TTY" 2>/dev/null

← d6811ed Ken: incorporate the brass AB Trading Switch onto the dashbo  ·  back to Ken  ·  auto-save: 2026-08-03T13:24:27 (1 files) — kalshi-dash/ken-r 982c1f4 →