Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

"Now here's something you're really going to like!" -- Rocket J. Squirrel


devel / comp.lang.tcl / is possible to insert image in wish or graphic console?

SubjectAuthor
* is possible to insert image in wish or graphic console?pd
+* Re: is possible to insert image in wish or graphic console?Rich
|`* Re: is possible to insert image in wish or graphic console?pd
| `* Re: is possible to insert image in wish or graphic console?Rich
|  `- Re: is possible to insert image in wish or graphic console?pd
+* Re: is possible to insert image in wish or graphic console?et99
|`* Re: is possible to insert image in wish or graphic console?pd
| `- Re: is possible to insert image in wish or graphic console?et99
`- Re: is possible to insert image in wish or graphic console?Christian Gollwitzer

1
is possible to insert image in wish or graphic console?

<05627da4-2cdc-4c65-ac95-b07db32f9d22n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.tcl
X-Received: by 2002:a05:6214:1316:b0:680:b0df:3d61 with SMTP id pn22-20020a056214131600b00680b0df3d61mr615046qvb.9.1705437382243;
Tue, 16 Jan 2024 12:36:22 -0800 (PST)
X-Received: by 2002:a05:6214:2aac:b0:681:77a9:fc27 with SMTP id
js12-20020a0562142aac00b0068177a9fc27mr117020qvb.8.1705437381972; Tue, 16 Jan
2024 12:36:21 -0800 (PST)
Path: i2pn2.org!i2pn.org!paganini.bofh.team!2.eu.feeder.erje.net!feeder.erje.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: Tue, 16 Jan 2024 12:36:21 -0800 (PST)
Injection-Info: google-groups.googlegroups.com; posting-host=207.188.184.151; posting-account=fwjo5QoAAAAcS9TSqEAQL1VEl7b8nCOq
NNTP-Posting-Host: 207.188.184.151
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <05627da4-2cdc-4c65-ac95-b07db32f9d22n@googlegroups.com>
Subject: is possible to insert image in wish or graphic console?
From: eukel...@gmail.com (pd)
Injection-Date: Tue, 16 Jan 2024 20:36:22 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: pd - Tue, 16 Jan 2024 20:36 UTC

Is there any way to insert an image in wish or any other graphic console?

I assume wish is a window program ie a graphic one, at least this seems to be true in the case of windows OS, like is said in tk docs:

"Note that on Windows, the wishversion.exe program varies from the tclshversion.exe program in an additional important way: it does not connect to a standard Windows console and is instead a windowed program. Because of this, it additionally provides access to its own console command."
https://www.tcl.tk/man/tcl/UserCmd/wish.html

So, it should be possible to write an image to the main window of wish and get displayed in the wish window.

For example, it would be cool if you can write code like this:

% image create photo -file "anImage.png"
image1
% puts [image1 data]

and you get below the last line the image displayed in the wish console in similar way that it works in racket repl or smalltalk transcript window or factor listener.

Re: is possible to insert image in wish or graphic console?

<uo6q9v$1jsu9$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!news.niel.me!news.gegeweb.eu!gegeweb.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ric...@example.invalid (Rich)
Newsgroups: comp.lang.tcl
Subject: Re: is possible to insert image in wish or graphic console?
Date: Tue, 16 Jan 2024 20:52:15 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 20
Message-ID: <uo6q9v$1jsu9$1@dont-email.me>
References: <05627da4-2cdc-4c65-ac95-b07db32f9d22n@googlegroups.com>
Injection-Date: Tue, 16 Jan 2024 20:52:15 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="1c97c1a092d4ec215fb7314eebed7013";
logging-data="1700809"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/5TY9YP08HTqfmznz59Tzt"
User-Agent: tin/2.6.1-20211226 ("Convalmore") (Linux/5.15.139 (x86_64))
Cancel-Lock: sha1:k4ztttabhoEMUVZi/nUgCa5iH3k=
 by: Rich - Tue, 16 Jan 2024 20:52 UTC

pd <eukelade@gmail.com> wrote:
> Is there any way to insert an image in wish or any other graphic
> console?

Provided said 'graphic consoles' are based off the Tk text widget, then
yes, as the text widget already supports inserting and display of Tk
images.

So you'd need to modify the console to include a display command to
display an image.

Doing "puts [image data]" would just get you the text encoded image
data, so better to have something like:

display image

Where 'display' is built in to the console and includes the small
amount of code to insert the image named 'image' into the next line of
the console text widget.

Re: is possible to insert image in wish or graphic console?

<cd631869-554e-4de8-80f5-8de5d5e25a21n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.tcl
X-Received: by 2002:a05:6214:e61:b0:681:3011:b163 with SMTP id jz1-20020a0562140e6100b006813011b163mr692999qvb.6.1705439590742;
Tue, 16 Jan 2024 13:13:10 -0800 (PST)
X-Received: by 2002:a0c:e6ec:0:b0:681:5588:f337 with SMTP id
m12-20020a0ce6ec000000b006815588f337mr682636qvn.8.1705439590547; Tue, 16 Jan
2024 13:13:10 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer03.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: Tue, 16 Jan 2024 13:13:10 -0800 (PST)
In-Reply-To: <uo6q9v$1jsu9$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=207.188.184.151; posting-account=fwjo5QoAAAAcS9TSqEAQL1VEl7b8nCOq
NNTP-Posting-Host: 207.188.184.151
References: <05627da4-2cdc-4c65-ac95-b07db32f9d22n@googlegroups.com> <uo6q9v$1jsu9$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <cd631869-554e-4de8-80f5-8de5d5e25a21n@googlegroups.com>
Subject: Re: is possible to insert image in wish or graphic console?
From: eukel...@gmail.com (pd)
Injection-Date: Tue, 16 Jan 2024 21:13:10 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2774
 by: pd - Tue, 16 Jan 2024 21:13 UTC

El martes, 16 de enero de 2024 a las 21:52:20 UTC+1, Rich escribió:
> pd <euke...@gmail.com> wrote:
> > Is there any way to insert an image in wish or any other graphic
> > console?
> Provided said 'graphic consoles' are based off the Tk text widget, then
> yes, as the text widget already supports inserting and display of Tk
> images.

Ok, and how can I get the "widget" associated with the graphic console? for example, if I run tkcon and try to get the window name with:

winfo name .

I get a message saying Tk is not loaded and asking me to retry the command after loading Tk, doing so a new Tk main window named "tkcon" appears and now tk commands refer to that window, not to the window of Tkcon console itself.

If I use wish, it already open two windows at startup, a main tk window named "wish" and a console windows named "console", any tk command referes to "wish" tk window.

So assuming wish console is a Tk window itself, how can I get its widgets and send tk commands to them?

If wish console is a graphic program but not a tk program, then I suppose I have to use graphic API beneath (windows, gtk...) to provide access to wish painting area and provide commands to interact with it like the one you suggest to diplay an image.
A maybe better alternative is to program a console in Tk itself, having a main tk window with a big entry field and manage to show there all output text and read from there input text providing commands to display special objects like images and so on

Re: is possible to insert image in wish or graphic console?

<uo6tgo$1ke39$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!newsfeed.endofthelinebbs.com!news.hispagatos.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ric...@example.invalid (Rich)
Newsgroups: comp.lang.tcl
Subject: Re: is possible to insert image in wish or graphic console?
Date: Tue, 16 Jan 2024 21:47:04 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 53
Message-ID: <uo6tgo$1ke39$1@dont-email.me>
References: <05627da4-2cdc-4c65-ac95-b07db32f9d22n@googlegroups.com> <uo6q9v$1jsu9$1@dont-email.me> <cd631869-554e-4de8-80f5-8de5d5e25a21n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 16 Jan 2024 21:47:04 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="1c97c1a092d4ec215fb7314eebed7013";
logging-data="1718377"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19tPOfvCLTSPk1PSlMUUTHl"
User-Agent: tin/2.6.1-20211226 ("Convalmore") (Linux/5.15.139 (x86_64))
Cancel-Lock: sha1:PHeCBTUdpyBu0r2KBRLuIOax2UM=
 by: Rich - Tue, 16 Jan 2024 21:47 UTC

pd <eukelade@gmail.com> wrote:
> El martes, 16 de enero de 2024 a las 21:52:20 UTC+1, Rich escribió:
>> pd <euke...@gmail.com> wrote:
>> > Is there any way to insert an image in wish or any other graphic
>> > console?
>> Provided said 'graphic consoles' are based off the Tk text widget, then
>> yes, as the text widget already supports inserting and display of Tk
>> images.
>
> Ok, and how can I get the "widget" associated with the graphic
> console? for example, if I run tkcon and try to get the window name
> with:
>
> winfo name .

On that I suggest you look into how the console is implemented. Tkcon
is just a Tcl/Tk script. I've not gone looking because I do my Tk
programming on Linux, where I already have a proper, real, console
(xterm/rxvt/urxvt/etc.) and so I seldome ever use Tkcon. And the few
times I do it is only to connect to a running Tk instance for a quick
inspection.

> I get a message saying Tk is not loaded and asking me to retry the
> command after loading Tk, doing so a new Tk main window named "tkcon"
> appears and now tk commands refer to that window, not to the window
> of Tkcon console itself.

Tkcon's probably running the console in an interpreter separate from
the one that handles Tkcon's own windows. Again, inspect the Tkcon
source, it is all just Tcl.

> So assuming wish console is a Tk window itself, how can I get its
> widgets and send tk commands to them?

Also, unsure. Look for the Tcl script that is lauched to make that
console and inspect how it is built to do its job. It is probably
running in a separate interpreter, so you'd need to find out the name
and then send commands into that interpreter.

> If wish console is a graphic program but not a tk program, then I
> suppose I have to use graphic API beneath (windows, gtk...) to
> provide access to wish painting area and provide commands to interact
> with it like the one you suggest to diplay an image.

Tkcon is just a Tcl/Tk script. I believe the basic 'console' that is
provided for windows builds is just a Tcl/Tk script as well. Dig into
the files installed for Tcl/Tk and see what you find.

> A maybe better alternative is to program a console in Tk itself,

I.e., just what Tkcon is, and what the basic console is as well (I
believe).

Re: is possible to insert image in wish or graphic console?

<uo70rs$1l1ed$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!newsfeed.endofthelinebbs.com!news.hispagatos.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: et9...@rocketship1.me (et99)
Newsgroups: comp.lang.tcl
Subject: Re: is possible to insert image in wish or graphic console?
Date: Tue, 16 Jan 2024 14:44:10 -0800
Organization: A noiseless patient Spider
Lines: 42
Message-ID: <uo70rs$1l1ed$1@dont-email.me>
References: <05627da4-2cdc-4c65-ac95-b07db32f9d22n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 16 Jan 2024 22:44:12 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="9fb50f509db3fca8c132af00d8cd0752";
logging-data="1738189"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1++1Co4v7E0uUH/mPLP0p53"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.6.1
Cancel-Lock: sha1:ZbCOUbXzd9FPUDfqNyM0X8HjSgg=
Content-Language: en-US
In-Reply-To: <05627da4-2cdc-4c65-ac95-b07db32f9d22n@googlegroups.com>
 by: et99 - Tue, 16 Jan 2024 22:44 UTC

On 1/16/2024 12:36 PM, pd wrote:
> Is there any way to insert an image in wish or any other graphic console?
>
> I assume wish is a window program ie a graphic one, at least this seems to be true in the case of windows OS, like is said in tk docs:
>
> "Note that on Windows, the wishversion.exe program varies from the tclshversion.exe program in an additional important way: it does not connect to a standard Windows console and is instead a windowed program. Because of this, it additionally provides access to its own console command."
> https://www.tcl.tk/man/tcl/UserCmd/wish.html
>
> So, it should be possible to write an image to the main window of wish and get displayed in the wish window.
>
> For example, it would be cool if you can write code like this:
>
> % image create photo -file "anImage.png"
> image1
> % puts [image1 data]
>
> and you get below the last line the image displayed in the wish console in similar way that it works in racket repl or smalltalk transcript window or factor listener.
>
>
>
In tcl/tk 8.7 and 9.0 both toplevel and frames can include background images (TIP 262). For demo code, see here:

https://wiki.tcl-lang.org/page/backgroundimage

One thing this can do is allow "skins", perhaps along with using the the place geom manager.

The windows console can be tweaked using the console eval command to add images. See

https://wiki.tcl-lang.org/page/console

and open the first discussion. Also, you can get a linux console if you use the code in

https://wiki.tcl-lang.org/page/console+for+Unix

I have added a few images to my consoles just for fun, for a few fancy buttons.

Re: is possible to insert image in wish or graphic console?

<uo82me$1tp46$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!rocksolid2!news.neodome.net!news.mixmin.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: aurio...@gmx.de (Christian Gollwitzer)
Newsgroups: comp.lang.tcl
Subject: Re: is possible to insert image in wish or graphic console?
Date: Wed, 17 Jan 2024 09:21:33 +0100
Organization: A noiseless patient Spider
Lines: 11
Message-ID: <uo82me$1tp46$1@dont-email.me>
References: <05627da4-2cdc-4c65-ac95-b07db32f9d22n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 17 Jan 2024 08:21:34 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="d064df011cf6a92467104f90084e146a";
logging-data="2024582"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/PtftwUTh2W4ty5pI89wZoNNZyttBNykc="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:h4OghVir7re4NA9G5iflWy+bs3M=
In-Reply-To: <05627da4-2cdc-4c65-ac95-b07db32f9d22n@googlegroups.com>
 by: Christian Gollwitzer - Wed, 17 Jan 2024 08:21 UTC

Am 16.01.24 um 21:36 schrieb pd:
> Is there any way to insert an image in wish or any other graphic console?
>
If you use tkcon, which is much better than the built-in console
anyway, it is right here in the front page of it:

https://wiki.tcl-lang.org/page/Tkcon

Christian

Re: is possible to insert image in wish or graphic console?

<796fb07a-21d9-413e-9863-95011f4c05f2n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.tcl
X-Received: by 2002:a05:622a:15c9:b0:429:a2eb:d438 with SMTP id d9-20020a05622a15c900b00429a2ebd438mr246207qty.7.1705505559529;
Wed, 17 Jan 2024 07:32:39 -0800 (PST)
X-Received: by 2002:a05:6214:3019:b0:681:5a4a:5dd with SMTP id
ke25-20020a056214301900b006815a4a05ddmr819948qvb.12.1705505559329; Wed, 17
Jan 2024 07:32:39 -0800 (PST)
Path: i2pn2.org!i2pn.org!news.neodome.net!weretis.net!feeder6.news.weretis.net!border-2.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: Wed, 17 Jan 2024 07:32:39 -0800 (PST)
In-Reply-To: <uo6tgo$1ke39$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=207.188.184.151; posting-account=fwjo5QoAAAAcS9TSqEAQL1VEl7b8nCOq
NNTP-Posting-Host: 207.188.184.151
References: <05627da4-2cdc-4c65-ac95-b07db32f9d22n@googlegroups.com>
<uo6q9v$1jsu9$1@dont-email.me> <cd631869-554e-4de8-80f5-8de5d5e25a21n@googlegroups.com>
<uo6tgo$1ke39$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <796fb07a-21d9-413e-9863-95011f4c05f2n@googlegroups.com>
Subject: Re: is possible to insert image in wish or graphic console?
From: eukel...@gmail.com (pd)
Injection-Date: Wed, 17 Jan 2024 15:32:39 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 66
 by: pd - Wed, 17 Jan 2024 15:32 UTC

El martes, 16 de enero de 2024 a las 22:47:09 UTC+1, Rich escribió:
> pd <euke...@gmail.com> wrote:
> > El martes, 16 de enero de 2024 a las 21:52:20 UTC+1, Rich escribió:
> >> pd <euke...@gmail.com> wrote:
> >> > Is there any way to insert an image in wish or any other graphic
> >> > console?
> >> Provided said 'graphic consoles' are based off the Tk text widget, then
> >> yes, as the text widget already supports inserting and display of Tk
> >> images.
> Tkcon is just a Tcl/Tk script. I believe the basic 'console' that is
> provided for windows builds is just a Tcl/Tk script as well. Dig into
> the files installed for Tcl/Tk and see what you find.
> > A maybe better alternative is to program a console in Tk itself,
> I.e., just what Tkcon is, and what the basic console is as well (I
> believe).

I'm using MagicSplat in windows shipped with two options for a tk console, wish and tkcon.

wish is not a tcl script but a windows executable:

wish.exe: PE32+ executable (GUI) x86-64, for MS Windows

I checked if it could be a starkit using sdx.kit but it isn't, just a windows exe so I suppose it is programmed ad hoc

tkcon is a tcl script and I can see how it creates the graphical console, it is basically a Text widget where it inserts text as needed

so, since it's possible to insert an image into a text widget you can do that in tkcmd, simply with:

% image create photo -file c:\\coy1.png
image1
% .tab1 insert end \n

% .tab1 image create end -image image1
[the image] image1

and thus you can define new commands such as:

proc myput {a} {
set ext [file extension $a]
if {$ext == ".png" || $ext == ".jpg"} {
set im [image create photo -file $a]
.tab1 image create end -image $im
} else {
puts "$a"
}
}

to say in the console:

% myput "hello world"
hello world
% myput c:\\coy1.png
[the image] image2

pretty cool, the job is to define useful commands in a similar way tkcon does, those commands must have into consideration the "type of arguments" and if being a special object (like an image) to manage it properly.

thanks!

Re: is possible to insert image in wish or graphic console?

<f7c7cc79-b6bd-4b2b-9822-1b62164898d2n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.tcl
X-Received: by 2002:a05:6214:5f06:b0:681:8754:bf07 with SMTP id lx6-20020a0562145f0600b006818754bf07mr45092qvb.8.1705507490060;
Wed, 17 Jan 2024 08:04:50 -0800 (PST)
X-Received: by 2002:a05:6214:5081:b0:680:ff23:5c4d with SMTP id
kk1-20020a056214508100b00680ff235c4dmr1266176qvb.9.1705507489804; Wed, 17 Jan
2024 08:04:49 -0800 (PST)
Path: i2pn2.org!i2pn.org!paganini.bofh.team!weretis.net!feeder6.news.weretis.net!border-2.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: Wed, 17 Jan 2024 08:04:49 -0800 (PST)
In-Reply-To: <uo70rs$1l1ed$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=207.188.184.151; posting-account=fwjo5QoAAAAcS9TSqEAQL1VEl7b8nCOq
NNTP-Posting-Host: 207.188.184.151
References: <05627da4-2cdc-4c65-ac95-b07db32f9d22n@googlegroups.com> <uo70rs$1l1ed$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <f7c7cc79-b6bd-4b2b-9822-1b62164898d2n@googlegroups.com>
Subject: Re: is possible to insert image in wish or graphic console?
From: eukel...@gmail.com (pd)
Injection-Date: Wed, 17 Jan 2024 16:04:50 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 17
 by: pd - Wed, 17 Jan 2024 16:04 UTC

El martes, 16 de enero de 2024 a las 23:44:17 UTC+1, et99 escribió:
> On 1/16/2024 12:36 PM, pd wrote:
> > Is there any way to insert an image in wish or any other graphic console?

> https://wiki.tcl-lang.org/page/backgro
> https://wiki.tcl-lang.org/page/console
> https://wiki.tcl-lang.org/page/console+for+Unix

interesting links, specially the info about console

> The windows console can be tweaked using the console eval command to add images. See

yes, reading your links and the one by C.Gollwitzer and tkcon source I realized tkcon provides an api with several commands, in particular it provides tkcon console to access to the text widget... it would be easier simply to extend this api with the commands you like

Re: is possible to insert image in wish or graphic console?

<uoa9n4$2f484$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.mixmin.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: et9...@rocketship1.me (et99)
Newsgroups: comp.lang.tcl
Subject: Re: is possible to insert image in wish or graphic console?
Date: Wed, 17 Jan 2024 20:33:38 -0800
Organization: A noiseless patient Spider
Lines: 24
Message-ID: <uoa9n4$2f484$1@dont-email.me>
References: <05627da4-2cdc-4c65-ac95-b07db32f9d22n@googlegroups.com>
<uo70rs$1l1ed$1@dont-email.me>
<f7c7cc79-b6bd-4b2b-9822-1b62164898d2n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 18 Jan 2024 04:33:40 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="876f4e785feda76abd1e15193efc4ca7";
logging-data="2593028"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19zLIYuI5rcAgJDDdGG6ceA"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.6.1
Cancel-Lock: sha1:X4u4sOVkPRxYO/OCsPh6nAraNj0=
In-Reply-To: <f7c7cc79-b6bd-4b2b-9822-1b62164898d2n@googlegroups.com>
Content-Language: en-US
 by: et99 - Thu, 18 Jan 2024 04:33 UTC

On 1/17/2024 8:04 AM, pd wrote:
> El martes, 16 de enero de 2024 a las 23:44:17 UTC+1, et99 escribió:
>> On 1/16/2024 12:36 PM, pd wrote:
>>> Is there any way to insert an image in wish or any other graphic console?
>
>> https://wiki.tcl-lang.org/page/backgro
>> https://wiki.tcl-lang.org/page/console
>> https://wiki.tcl-lang.org/page/console+for+Unix
>
> interesting links, specially the info about console
>
>> The windows console can be tweaked using the console eval command to add images. See
>
> yes, reading your links and the one by C.Gollwitzer and tkcon source I realized tkcon provides an api with several commands, in particular it provides tkcon console to access to the text widget... it would be easier simply to extend this api with the commands you like

I use the built in console to be certain I have somewhere to output a message log. No package require, no sourcing, etc. Even androwish has a console. Only unix is left out, but in under 200 lines of code, which I just include in my own programs, I can be sure of having a console everywhere my programs will run. Tkcon is 6500 lines, and it's not always available. I think of it more as a debugger than a simple console.

I suspect your needs are different and so tkcon may very well be the ticket for you.

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor