Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Converted keyer-control to the Tcl version, started the keyer_decode …
…replacement in Tcl.
- Loading branch information
Showing
9 changed files
with
127 additions
and
482 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,37 @@ | |||
#!/usr/bin/tclsh | |||
# -*- mode: Tcl; tab-width: 8; -*- | |||
|
|||
lappend auto_path [file join [file dirname [info script]] .. lib] | |||
|
|||
package require keyer | |||
|
|||
array set data { | |||
-server default | |||
-client decode | |||
-chan 1 | |||
-note 0 | |||
} | |||
|
|||
foreach {option value} $argv { | |||
switch -- $option { | |||
--server - | |||
--client - | |||
--chan - | |||
--note { | |||
set data([string range $option 1 end]) $value | |||
} | |||
default { | |||
error "unrecognized option: $option" | |||
} | |||
} | |||
} | |||
|
|||
keyer::decode decode {*}[array get data] | |||
|
|||
fconfigure stdout -buffering none | |||
while {1} { | |||
set line [decode gets] | |||
if {[string length $line]} { | |||
puts -nonewline $line | |||
} | |||
} |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.