summaryrefslogtreecommitdiffstats
path: root/doc/console.n
diff options
context:
space:
mode:
authormarc_culler <marc.culler@gmail.com>2020-10-25 15:04:54 (GMT)
committermarc_culler <marc.culler@gmail.com>2020-10-25 15:04:54 (GMT)
commit9be66cd1af6db0fad2e35ff761f35f69f13d77f4 (patch)
tree3a1ea1d59a5e79f1fb38ad7ac15c9eb1928f3433 /doc/console.n
parent38f8f81b3b2a5ed3db23fc8fa7edb35c52a9eac5 (diff)
downloadtk-9be66cd1af6db0fad2e35ff761f35f69f13d77f4.zip
tk-9be66cd1af6db0fad2e35ff761f35f69f13d77f4.tar.gz
tk-9be66cd1af6db0fad2e35ff761f35f69f13d77f4.tar.bz2
Document the TK_CONSOLE environment variable for macOS
Diffstat (limited to 'doc/console.n')
-rw-r--r--doc/console.n9
1 files changed, 6 insertions, 3 deletions
diff --git a/doc/console.n b/doc/console.n
index 1313d3a..86dbd46 100644
--- a/doc/console.n
+++ b/doc/console.n
@@ -25,9 +25,12 @@ the Tk library. Except for TkAqua, this command is not available when
Tk is loaded into a tclsh interpreter with
.QW "\fBpackage require Tk\fR" ,
as a conventional terminal is expected to be present in that case.
-In TkAqua, this command is only available when stdin is \fB/dev/null\fR
-(as is the case e.g. when the application embedding Tk is started
-from the Mac OS X Finder).
+In TkAqua, this command is disabled when there is a startup script
+and stdin is \fB/dev/null\fR (as is the case e.g. when a bundled application
+embedding Tk is started by the macOS Launcher). To enable the command
+in that case, define the environment variable \fBTK_CONSOLE\fR. This can be
+done by modifying the Info.plist file by adding the LSEnvironment key
+to the main dict and setting its value to be a dict with the key \fBTK_CONSOLE\fR.
.PP
.TP
\fBconsole eval \fIscript\fR