Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

OS/2 must die!


devel / comp.lang.tcl / Re: in Tcl/tk, How can I redirect stdout to a text widget?

SubjectAuthor
* in Tcl/tk, How can I redirect stdout to a text widget?Robert Heller
`* in Tcl/tk, How can I redirect stdout to a text widget?Matthias Meier
 `* in Tcl/tk, How can I redirect stdout to a text widget?mango
  `- in Tcl/tk, How can I redirect stdout to a text widget?Christopher Chavez

1
Re: in Tcl/tk, How can I redirect stdout to a text widget?

<ObqcnYhbyYVigbn4nZ2dnZfqnPednZ2d@giganews.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=12215&group=comp.lang.tcl#12215

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!feeder.usenetexpress.com!tr1.iad1.usenetexpress.com!69.80.99.27.MISMATCH!Xl.tags.giganews.com!local-2.nntp.ord.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Mon, 09 Oct 2023 15:32:15 +0000
MIME-Version: 1.0
From: hel...@deepsoft.com (Robert Heller)
Organization: Deepwoods Software
X-Newsreader: TkNews 3.0 (1.2.15)
Subject: Re: in Tcl/tk, How can I redirect stdout to a text widget?
In-Reply-To: <9382fb7a-68b3-443e-8042-7fddaa82dc1fn@googlegroups.com>
References: <9382fb7a-68b3-443e-8042-7fddaa82dc1fn@googlegroups.com>
Newsgroups: comp.lang.tcl
Content-Type: text/plain; charset="us-ascii"
Originator: heller@sharky4.deepsoft.com
Message-ID: <ObqcnYhbyYVigbn4nZ2dnZfqnPednZ2d@giganews.com>
Date: Mon, 09 Oct 2023 15:32:15 +0000
Lines: 34
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-tJP4gVijsyeC7uBW7ulcmfd/pJXOe1yN6bgNKLKXUbt77bUqG460Ssr6tP5d8s5ltOqir59OWTPb8P0!WCmAMQkZi+dwJIgjOd+L1gBoOfDmGCwps25bUsFIUROXb4Orq3bQE4V6/DjmPhCjzHe+3zWC1eA4!EuQ=
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
 by: Robert Heller - Mon, 9 Oct 2023 15:32 UTC

At Mon, 9 Oct 2023 07:55:08 -0700 (PDT) ?????? ???????????????? <phetkongakkamonfh@gmail.com> wrote:

>
> in Tcl/tk, How can I redirect stdout to a text widget?

Is this from a sub-process (eg launched with exec)? If so, use open with a
pipe:

replace

exec some command line

with

pack [text .t] -expand yes -fill both
set fp [open "|some command line" r]
fileevent readable $fp "writeToText $fp .t"

proc writeToText {chan text} {
if {[gets $chan line] < 0} {
catch {close $chan}
} else {
$text insert end "$line\n"
}
}

--
Robert Heller -- Cell: 413-658-7953 GV: 978-633-5364
Deepwoods Software -- Custom Software Services
http://www.deepsoft.com/ -- Linux Administration Services
heller@deepsoft.com -- Webhosting Services

Re: in Tcl/tk, How can I redirect stdout to a text widget?

<16b4b9fc-9476-4674-9084-eedc2f640d6fn@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=12225&group=comp.lang.tcl#12225

  copy link   Newsgroups: comp.lang.tcl
X-Received: by 2002:a05:620a:4388:b0:775:74c2:ce09 with SMTP id a8-20020a05620a438800b0077574c2ce09mr373508qkp.13.1697195643837;
Fri, 13 Oct 2023 04:14:03 -0700 (PDT)
X-Received: by 2002:a05:6214:8e9:b0:66d:1308:1836 with SMTP id
dr9-20020a05621408e900b0066d13081836mr188665qvb.2.1697195643631; Fri, 13 Oct
2023 04:14:03 -0700 (PDT)
Path: i2pn2.org!i2pn.org!news.chmurka.net!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.tcl
Date: Fri, 13 Oct 2023 04:14:03 -0700 (PDT)
In-Reply-To: <ObqcnYhbyYVigbn4nZ2dnZfqnPednZ2d@giganews.com>
Injection-Info: google-groups.googlegroups.com; posting-host=87.130.65.51; posting-account=chTr3AoAAABkVLsODv9wti58Lk9Gr9as
NNTP-Posting-Host: 87.130.65.51
References: <9382fb7a-68b3-443e-8042-7fddaa82dc1fn@googlegroups.com> <ObqcnYhbyYVigbn4nZ2dnZfqnPednZ2d@giganews.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <16b4b9fc-9476-4674-9084-eedc2f640d6fn@googlegroups.com>
Subject: Re: in Tcl/tk, How can I redirect stdout to a text widget?
From: diemeier...@googlemail.com (Matthias Meier)
Injection-Date: Fri, 13 Oct 2023 11:14:03 +0000
Content-Type: text/plain; charset="UTF-8"
 by: Matthias Meier - Fri, 13 Oct 2023 11:14 UTC

Maybe you'll aver a look into tkcon ( https://github.com/wjoye/tkcon ).
stderr/stdout is redirected there to the text-Widget

Matthias

Re: in Tcl/tk, How can I redirect stdout to a text widget?

<94edd0b9-7c8e-4958-9c60-cab654bcec06n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=12231&group=comp.lang.tcl#12231

  copy link   Newsgroups: comp.lang.tcl
X-Received: by 2002:ad4:4e28:0:b0:66d:d47:fff0 with SMTP id dm8-20020ad44e28000000b0066d0d47fff0mr176588qvb.9.1697212092195;
Fri, 13 Oct 2023 08:48:12 -0700 (PDT)
X-Received: by 2002:a05:6808:2390:b0:3a7:392a:7405 with SMTP id
bp16-20020a056808239000b003a7392a7405mr14031177oib.2.1697212091970; Fri, 13
Oct 2023 08:48:11 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!1.us.feeder.erje.net!3.us.feeder.erje.net!feeder.erje.net!border-1.nntp.ord.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.tcl
Date: Fri, 13 Oct 2023 08:48:11 -0700 (PDT)
In-Reply-To: <16b4b9fc-9476-4674-9084-eedc2f640d6fn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=47.146.69.8; posting-account=ZFot6woAAABKx26r18WnGS2aDcK8wnRB
NNTP-Posting-Host: 47.146.69.8
References: <9382fb7a-68b3-443e-8042-7fddaa82dc1fn@googlegroups.com>
<ObqcnYhbyYVigbn4nZ2dnZfqnPednZ2d@giganews.com> <16b4b9fc-9476-4674-9084-eedc2f640d6fn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <94edd0b9-7c8e-4958-9c60-cab654bcec06n@googlegroups.com>
Subject: Re: in Tcl/tk, How can I redirect stdout to a text widget?
From: amango...@modelrealization.com (mango)
Injection-Date: Fri, 13 Oct 2023 15:48:12 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 8
 by: mango - Fri, 13 Oct 2023 15:48 UTC

On Friday, October 13, 2023 at 4:14:06 AM UTC-7, Matthias Meier wrote:
> Maybe you'll aver a look into tkcon ( https://github.com/wjoye/tkcon ).
> stderr/stdout is redirected there to the text-Widget
>
> Matthias

How about tcl::chan::textwindow in tcllib?

Re: in Tcl/tk, How can I redirect stdout to a text widget?

<2cec0cb8-a178-4f27-ab1b-7af9858338e5n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=12411&group=comp.lang.tcl#12411

  copy link   Newsgroups: comp.lang.tcl
X-Received: by 2002:a05:620a:178c:b0:76e:f294:a706 with SMTP id ay12-20020a05620a178c00b0076ef294a706mr300634qkb.2.1700394346893;
Sun, 19 Nov 2023 03:45:46 -0800 (PST)
X-Received: by 2002:a17:902:c382:b0:1ce:1829:2df8 with SMTP id
g2-20020a170902c38200b001ce18292df8mr1146935plg.12.1700394346602; Sun, 19 Nov
2023 03:45:46 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!weretis.net!feeder8.news.weretis.net!newsreader4.netcologne.de!news.netcologne.de!peer02.ams1!peer.ams1.xlned.com!news.xlned.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.tcl
Date: Sun, 19 Nov 2023 03:45:45 -0800 (PST)
In-Reply-To: <94edd0b9-7c8e-4958-9c60-cab654bcec06n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=136.50.14.219; posting-account=vZ1gdQoAAADNJdHyfMhSNdXAaH9rl30G
NNTP-Posting-Host: 136.50.14.219
References: <9382fb7a-68b3-443e-8042-7fddaa82dc1fn@googlegroups.com>
<ObqcnYhbyYVigbn4nZ2dnZfqnPednZ2d@giganews.com> <16b4b9fc-9476-4674-9084-eedc2f640d6fn@googlegroups.com>
<94edd0b9-7c8e-4958-9c60-cab654bcec06n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <2cec0cb8-a178-4f27-ab1b-7af9858338e5n@googlegroups.com>
Subject: Re: in Tcl/tk, How can I redirect stdout to a text widget?
From: chrstphr...@aol.com (Christopher Chavez)
Injection-Date: Sun, 19 Nov 2023 11:45:46 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1575
 by: Christopher Chavez - Sun, 19 Nov 2023 11:45 UTC

Be aware that this thread was started by a spammer who copied the subject from a 2004 thread:
https://groups.google.com/g/comp.lang.tcl/c/WZNNb-1ZsNc/m/-pFUAeSh6E8J

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor