Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

Fascinating is a word I use for the unexpected. -- Spock, "The Squire of Gothos", stardate 2124.5


devel / comp.lang.clipper.visual-objects / Set caption of terminal/console app

SubjectAuthor
* Set caption of terminal/console appSebastián BASSANO
`* Re: Set caption of terminal/console appNorbert Kolb
 `* Re: Set caption of terminal/console appPhil McGuinness
  `* Re: Set caption of terminal/console appSebastián BASSANO
   `* Re: Set caption of terminal/console appPhil McGuinness
    `- Re: Set caption of terminal/console appSebastián BASSANO

1
Set caption of terminal/console app

<57df5c9c-3d87-4a5a-90ce-3fb717905b89n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=1303&group=comp.lang.clipper.visual-objects#1303

  copy link   Newsgroups: comp.lang.clipper.visual-objects
X-Received: by 2002:a05:620a:43:b0:71f:b8ba:ff4c with SMTP id t3-20020a05620a004300b0071fb8baff4cmr1128425qkt.10.1681478909765;
Fri, 14 Apr 2023 06:28:29 -0700 (PDT)
X-Received: by 2002:a25:730c:0:b0:b91:b64e:743d with SMTP id
o12-20020a25730c000000b00b91b64e743dmr698296ybc.9.1681478909479; Fri, 14 Apr
2023 06:28:29 -0700 (PDT)
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.clipper.visual-objects
Date: Fri, 14 Apr 2023 06:28:29 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=181.110.70.206; posting-account=uZKv0QoAAADWPw3SFlyzu0XF3u85G-5e
NNTP-Posting-Host: 181.110.70.206
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <57df5c9c-3d87-4a5a-90ce-3fb717905b89n@googlegroups.com>
Subject: Set caption of terminal/console app
From: ccyasa.sbassano@gmail.com (Sebastián BASSANO)
Injection-Date: Fri, 14 Apr 2023 13:28:29 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1457
 by: Sebastián BASSANO - Fri, 14 Apr 2023 13:28 UTC

Hi, i'm trying to set the caption of a terminal app (Basic > Terminal App) without success.
With the code below, the caption changes to My Caption but after the sleep go to the default Visual Objects terminal/console caption:

FUNCTION Start()

SetConsoleTitle(String2Psz("My Caption"))
Sleep(1000)
? "Hello World"

WAIT
RETURN NIL

Maybe i'm using the wrong function... Any hints?
Thanks.

Re: Set caption of terminal/console app

<2994b0f6-7a8b-42cd-9755-ca03cfff5fc3n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=1304&group=comp.lang.clipper.visual-objects#1304

  copy link   Newsgroups: comp.lang.clipper.visual-objects
X-Received: by 2002:ad4:4b64:0:b0:5ef:43ee:61fb with SMTP id m4-20020ad44b64000000b005ef43ee61fbmr1544020qvx.6.1681680646473;
Sun, 16 Apr 2023 14:30:46 -0700 (PDT)
X-Received: by 2002:a25:d24c:0:b0:b92:46de:fde8 with SMTP id
j73-20020a25d24c000000b00b9246defde8mr963105ybg.13.1681680646251; Sun, 16 Apr
2023 14:30:46 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.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.clipper.visual-objects
Date: Sun, 16 Apr 2023 14:30:45 -0700 (PDT)
In-Reply-To: <b3a09f34-70d3-42e6-ba62-4ca0b1a96537n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=220.233.174.33; posting-account=fRzZsQoAAADwaaqj-H-lyUfDBtpEL68c
NNTP-Posting-Host: 220.233.174.33
References: <57df5c9c-3d87-4a5a-90ce-3fb717905b89n@googlegroups.com> <b3a09f34-70d3-42e6-ba62-4ca0b1a96537n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <2994b0f6-7a8b-42cd-9755-ca03cfff5fc3n@googlegroups.com>
Subject: Re: Set caption of terminal/console app
From: mcguinnesssherlock@gmail.com (Phil McGuinness)
Injection-Date: Sun, 16 Apr 2023 21:30:46 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1345
 by: Phil McGuinness - Sun, 16 Apr 2023 21:30 UTC

FUNCTION Start()

? "Hello World"

SetConsoleTitle(String2Psz("My Caption"))
Sleep(1000)

//WAIT
_Wait()

RETURN NIL

Re: Set caption of terminal/console app

<b3a09f34-70d3-42e6-ba62-4ca0b1a96537n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=1305&group=comp.lang.clipper.visual-objects#1305

  copy link   Newsgroups: comp.lang.clipper.visual-objects
X-Received: by 2002:a05:622a:343:b0:3ef:2c95:9d21 with SMTP id r3-20020a05622a034300b003ef2c959d21mr185459qtw.4.1681651262220;
Sun, 16 Apr 2023 06:21:02 -0700 (PDT)
X-Received: by 2002:a25:7411:0:b0:b8f:6d23:3c7a with SMTP id
p17-20020a257411000000b00b8f6d233c7amr5410947ybc.12.1681651262046; Sun, 16
Apr 2023 06:21:02 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.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.clipper.visual-objects
Date: Sun, 16 Apr 2023 06:21:01 -0700 (PDT)
In-Reply-To: <57df5c9c-3d87-4a5a-90ce-3fb717905b89n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2a02:8389:41c1:f480:2897:86df:a5c6:933d;
posting-account=FaB1-woAAACLDmwGeDBBeYMReO4osY8-
NNTP-Posting-Host: 2a02:8389:41c1:f480:2897:86df:a5c6:933d
References: <57df5c9c-3d87-4a5a-90ce-3fb717905b89n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <b3a09f34-70d3-42e6-ba62-4ca0b1a96537n@googlegroups.com>
Subject: Re: Set caption of terminal/console app
From: norbert@kolb.cx (Norbert Kolb)
Injection-Date: Sun, 16 Apr 2023 13:21:02 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 1390
 by: Norbert Kolb - Sun, 16 Apr 2023 13:21 UTC

Hello Sebasteán,
you have to insert the function __InitConsole() before the call SetConsoleTitle. Then it should work.
Kind regards
Norbert

Re: Set caption of terminal/console app

<7d91e4af-5b67-4137-a811-3ae0363c57acn@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=1306&group=comp.lang.clipper.visual-objects#1306

  copy link   Newsgroups: comp.lang.clipper.visual-objects
X-Received: by 2002:ad4:4e8a:0:b0:5ef:4807:3864 with SMTP id dy10-20020ad44e8a000000b005ef48073864mr1961852qvb.4.1681733585695;
Mon, 17 Apr 2023 05:13:05 -0700 (PDT)
X-Received: by 2002:a81:a787:0:b0:549:2cc8:6e3e with SMTP id
e129-20020a81a787000000b005492cc86e3emr9233992ywh.9.1681733585401; Mon, 17
Apr 2023 05:13:05 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!1.us.feeder.erje.net!feeder.erje.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.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.clipper.visual-objects
Date: Mon, 17 Apr 2023 05:13:05 -0700 (PDT)
In-Reply-To: <2994b0f6-7a8b-42cd-9755-ca03cfff5fc3n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=181.110.70.206; posting-account=uZKv0QoAAADWPw3SFlyzu0XF3u85G-5e
NNTP-Posting-Host: 181.110.70.206
References: <57df5c9c-3d87-4a5a-90ce-3fb717905b89n@googlegroups.com>
<b3a09f34-70d3-42e6-ba62-4ca0b1a96537n@googlegroups.com> <2994b0f6-7a8b-42cd-9755-ca03cfff5fc3n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <7d91e4af-5b67-4137-a811-3ae0363c57acn@googlegroups.com>
Subject: Re: Set caption of terminal/console app
From: ccyasa.sbassano@gmail.com (Sebastián BASSANO)
Injection-Date: Mon, 17 Apr 2023 12:13:05 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 1898
 by: Sebastián BASSANO - Mon, 17 Apr 2023 12:13 UTC

El Sunday, April 16, 2023 a la(s) 6:30:47 PM UTC-3, Phil McGuinness escribió:
> FUNCTION Start()
>
> ? "Hello World"
> SetConsoleTitle(String2Psz("My Caption"))
> Sleep(1000)
> //WAIT
> _Wait()
>
> RETURN NIL

Thank you both!
The __InitConsole() line fixed the problem. You learn something new every day!
As I couldn't get it to work I had created a Console App (instead of Terminal App) and with the Console object and the Title assignment I was able to achieve what I needed.
Regards.

Sebastián

Re: Set caption of terminal/console app

<527b06ae-f14b-4579-bded-44d36241cd6cn@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=1307&group=comp.lang.clipper.visual-objects#1307

  copy link   Newsgroups: comp.lang.clipper.visual-objects
X-Received: by 2002:a05:620a:1036:b0:74d:f8c4:9af3 with SMTP id a22-20020a05620a103600b0074df8c49af3mr1382445qkk.8.1681857195901;
Tue, 18 Apr 2023 15:33:15 -0700 (PDT)
X-Received: by 2002:a25:cfce:0:b0:b8b:fd23:5028 with SMTP id
f197-20020a25cfce000000b00b8bfd235028mr12950051ybg.3.1681857195519; Tue, 18
Apr 2023 15:33:15 -0700 (PDT)
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.clipper.visual-objects
Date: Tue, 18 Apr 2023 15:33:15 -0700 (PDT)
In-Reply-To: <7d91e4af-5b67-4137-a811-3ae0363c57acn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=220.233.174.33; posting-account=fRzZsQoAAADwaaqj-H-lyUfDBtpEL68c
NNTP-Posting-Host: 220.233.174.33
References: <57df5c9c-3d87-4a5a-90ce-3fb717905b89n@googlegroups.com>
<b3a09f34-70d3-42e6-ba62-4ca0b1a96537n@googlegroups.com> <2994b0f6-7a8b-42cd-9755-ca03cfff5fc3n@googlegroups.com>
<7d91e4af-5b67-4137-a811-3ae0363c57acn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <527b06ae-f14b-4579-bded-44d36241cd6cn@googlegroups.com>
Subject: Re: Set caption of terminal/console app
From: mcguinnesssherlock@gmail.com (Phil McGuinness)
Injection-Date: Tue, 18 Apr 2023 22:33:15 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 1888
 by: Phil McGuinness - Tue, 18 Apr 2023 22:33 UTC

Sebastion

The reason I put the ? "hello world" before the SetConsoleTitle() is it calls __InitConsole() for you.
You can read the source code in the SDK

Phil

> Thank you both!
> The __InitConsole() line fixed the problem. You learn something new every day!
> As I couldn't get it to work I had created a Console App (instead of Terminal App) and with the Console object and the Title assignment I was able to achieve what I needed.
> Regards.
>
> Sebastián

Re: Set caption of terminal/console app

<7c2a5f4b-5616-47dc-9f65-fab92004405dn@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=1308&group=comp.lang.clipper.visual-objects#1308

  copy link   Newsgroups: comp.lang.clipper.visual-objects
X-Received: by 2002:a05:620a:37a5:b0:746:c33f:786 with SMTP id pi37-20020a05620a37a500b00746c33f0786mr3189637qkn.3.1681905193067;
Wed, 19 Apr 2023 04:53:13 -0700 (PDT)
X-Received: by 2002:a25:718a:0:b0:b8b:f61e:65ff with SMTP id
m132-20020a25718a000000b00b8bf61e65ffmr13922836ybc.5.1681905192830; Wed, 19
Apr 2023 04:53:12 -0700 (PDT)
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.clipper.visual-objects
Date: Wed, 19 Apr 2023 04:53:12 -0700 (PDT)
In-Reply-To: <527b06ae-f14b-4579-bded-44d36241cd6cn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=181.110.70.206; posting-account=uZKv0QoAAADWPw3SFlyzu0XF3u85G-5e
NNTP-Posting-Host: 181.110.70.206
References: <57df5c9c-3d87-4a5a-90ce-3fb717905b89n@googlegroups.com>
<b3a09f34-70d3-42e6-ba62-4ca0b1a96537n@googlegroups.com> <2994b0f6-7a8b-42cd-9755-ca03cfff5fc3n@googlegroups.com>
<7d91e4af-5b67-4137-a811-3ae0363c57acn@googlegroups.com> <527b06ae-f14b-4579-bded-44d36241cd6cn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <7c2a5f4b-5616-47dc-9f65-fab92004405dn@googlegroups.com>
Subject: Re: Set caption of terminal/console app
From: ccyasa.sbassano@gmail.com (Sebastián BASSANO)
Injection-Date: Wed, 19 Apr 2023 11:53:13 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2200
 by: Sebastián BASSANO - Wed, 19 Apr 2023 11:53 UTC

El Tuesday, April 18, 2023 a la(s) 7:33:16 PM UTC-3, Phil McGuinness escribió:
> Sebastion
>
> The reason I put the ? "hello world" before the SetConsoleTitle() is it calls __InitConsole() for you.
> You can read the source code in the SDK
>
> Phil
> > Thank you both!
> > The __InitConsole() line fixed the problem. You learn something new every day!
> > As I couldn't get it to work I had created a Console App (instead of Terminal App) and with the Console object and the Title assignment I was able to achieve what I needed.
> > Regards.
> >
> > Sebastián

Thanks Phil, your code worked too, in the end I used __InitConsole() for readability.

Sebastián

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor