From 2ee3c3c76329c01627e1646e2cce4b7d1dd1e963 Mon Sep 17 00:00:00 2001 From: Julian Noble Date: Thu, 26 Sep 2024 01:43:52 +1000 Subject: [PATCH] console raw mode fix for unix --- src/bootsupport/modules/punk/console-0.1.1.tm | 2 +- src/modules/punk/console-999999.0a1.0.tm | 2 +- .../src/bootsupport/modules/punk/console-0.1.1.tm | 2 +- .../src/bootsupport/modules/punk/console-0.1.1.tm | 2 +- src/vfs/_vfscommon/modules/punk/console-0.1.1.tm | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/bootsupport/modules/punk/console-0.1.1.tm b/src/bootsupport/modules/punk/console-0.1.1.tm index 887888e8..6f385194 100644 --- a/src/bootsupport/modules/punk/console-0.1.1.tm +++ b/src/bootsupport/modules/punk/console-0.1.1.tm @@ -183,7 +183,7 @@ namespace eval punk::console { variable previous_stty_state_$channel set sttycmd [auto_execok stty] if {[set previous_stty_state_$channel] eq ""} { - if {[catch {{*}$sttycmd -g <@$channel} previous_stty_state_$channel]} { + if {[catch {exec {*}$sttycmd -g <@$channel} previous_stty_state_$channel]} { set previous_stty_state_$channel "" } } diff --git a/src/modules/punk/console-999999.0a1.0.tm b/src/modules/punk/console-999999.0a1.0.tm index 140968a0..72d1ab19 100644 --- a/src/modules/punk/console-999999.0a1.0.tm +++ b/src/modules/punk/console-999999.0a1.0.tm @@ -183,7 +183,7 @@ namespace eval punk::console { variable previous_stty_state_$channel set sttycmd [auto_execok stty] if {[set previous_stty_state_$channel] eq ""} { - if {[catch {{*}$sttycmd -g <@$channel} previous_stty_state_$channel]} { + if {[catch {exec {*}$sttycmd -g <@$channel} previous_stty_state_$channel]} { set previous_stty_state_$channel "" } } diff --git a/src/project_layouts/custom/_project/punk.project-0.1/src/bootsupport/modules/punk/console-0.1.1.tm b/src/project_layouts/custom/_project/punk.project-0.1/src/bootsupport/modules/punk/console-0.1.1.tm index 887888e8..6f385194 100644 --- a/src/project_layouts/custom/_project/punk.project-0.1/src/bootsupport/modules/punk/console-0.1.1.tm +++ b/src/project_layouts/custom/_project/punk.project-0.1/src/bootsupport/modules/punk/console-0.1.1.tm @@ -183,7 +183,7 @@ namespace eval punk::console { variable previous_stty_state_$channel set sttycmd [auto_execok stty] if {[set previous_stty_state_$channel] eq ""} { - if {[catch {{*}$sttycmd -g <@$channel} previous_stty_state_$channel]} { + if {[catch {exec {*}$sttycmd -g <@$channel} previous_stty_state_$channel]} { set previous_stty_state_$channel "" } } diff --git a/src/project_layouts/custom/_project/punk.shell-0.1/src/bootsupport/modules/punk/console-0.1.1.tm b/src/project_layouts/custom/_project/punk.shell-0.1/src/bootsupport/modules/punk/console-0.1.1.tm index 887888e8..6f385194 100644 --- a/src/project_layouts/custom/_project/punk.shell-0.1/src/bootsupport/modules/punk/console-0.1.1.tm +++ b/src/project_layouts/custom/_project/punk.shell-0.1/src/bootsupport/modules/punk/console-0.1.1.tm @@ -183,7 +183,7 @@ namespace eval punk::console { variable previous_stty_state_$channel set sttycmd [auto_execok stty] if {[set previous_stty_state_$channel] eq ""} { - if {[catch {{*}$sttycmd -g <@$channel} previous_stty_state_$channel]} { + if {[catch {exec {*}$sttycmd -g <@$channel} previous_stty_state_$channel]} { set previous_stty_state_$channel "" } } diff --git a/src/vfs/_vfscommon/modules/punk/console-0.1.1.tm b/src/vfs/_vfscommon/modules/punk/console-0.1.1.tm index 887888e8..6f385194 100644 --- a/src/vfs/_vfscommon/modules/punk/console-0.1.1.tm +++ b/src/vfs/_vfscommon/modules/punk/console-0.1.1.tm @@ -183,7 +183,7 @@ namespace eval punk::console { variable previous_stty_state_$channel set sttycmd [auto_execok stty] if {[set previous_stty_state_$channel] eq ""} { - if {[catch {{*}$sttycmd -g <@$channel} previous_stty_state_$channel]} { + if {[catch {exec {*}$sttycmd -g <@$channel} previous_stty_state_$channel]} { set previous_stty_state_$channel "" } }