mirror of
https://github.com/jixishi/SerialTerminalForWindowsTerminal.git
synced 2026-06-15 16:42:46 +00:00
a1524a7e17
Move serial port, trzsz filter, and pipe lifecycle into internal/session.SerialSession. Replace 8 global I/O vars (serialPort, trzszFilter, stdinPipe, stdoutPipe, clientIn, clientOut, termch, termchOnce) with single sess variable. Delete utils.go. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
14 lines
176 B
Go
14 lines
176 B
Go
package main
|
|
|
|
import (
|
|
"io"
|
|
"os"
|
|
|
|
"github.com/jixishi/SerialTerminalForWindowsTerminal/internal/session"
|
|
)
|
|
|
|
var (
|
|
sess *session.SerialSession
|
|
out io.Writer = os.Stdout
|
|
)
|