Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

Uncompensated overtime? Just Say No.


devel / comp.lang.fortran / Re: Bold print

SubjectAuthor
* Bold printdb
+* Re: Bold printLynn McGuire
|+- Re: Bold printThomas Koenig
|`- Re: Bold printdb
`* Re: Bold printyeti
 `- Re: Bold printdb

1
Bold print

<unrgan$3fra8$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=3800&group=comp.lang.fortran#3800

  copy link   Newsgroups: comp.lang.fortran
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: dieterhansbritz@gmail.com (db)
Newsgroups: comp.lang.fortran
Subject: Bold print
Date: Fri, 12 Jan 2024 14:54:31 +0100
Organization: A noiseless patient Spider
Lines: 11
Message-ID: <unrgan$3fra8$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 12 Jan 2024 13:54:31 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="e113dd09492f20be2d5543316e88b8fd";
logging-data="3665224"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX196igDkKGiYTlfmjWMGoO0u4mi7N+S3rho="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:KXnOjAYkYtejuSPwoj5e8IMLUuU=
Content-Language: en-US
 by: db - Fri, 12 Jan 2024 13:54 UTC

I have a program that reads a file of birthdays and prints
out impending ones when I activate my (Linux) console.
It first prints a header

print '(/" Birthdays:")'

Is it possible to get it to print that in bold or a colour?
If yes, how?

--
Dieter Britz

Re: Bold print

<unt2mu$3q6sr$2@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=3801&group=comp.lang.fortran#3801

  copy link   Newsgroups: comp.lang.fortran
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: lynnmcguire5@gmail.com (Lynn McGuire)
Newsgroups: comp.lang.fortran
Subject: Re: Bold print
Date: Fri, 12 Jan 2024 22:14:21 -0600
Organization: A noiseless patient Spider
Lines: 21
Message-ID: <unt2mu$3q6sr$2@dont-email.me>
References: <unrgan$3fra8$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 13 Jan 2024 04:14:22 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="a86f6c9847ae1da80b92ed6ff990d3b0";
logging-data="4004763"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/sIORMdw+C9yFuSK2oOIS9r/4Q3JgXa9U="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:fUUleZdPFGNkLAcTgi9M0YZmZ6o=
In-Reply-To: <unrgan$3fra8$1@dont-email.me>
Content-Language: en-US
 by: Lynn McGuire - Sat, 13 Jan 2024 04:14 UTC

On 1/12/2024 7:54 AM, db wrote:
> I have a program that reads a file of birthdays and prints
> out impending ones when I activate my (Linux) console.
> It first prints a header
>
>   print '(/" Birthdays:")'
>
> Is it possible to get it to print that in bold or a colour?
> If yes, how?

Ok, I'll bite. So what is the device that you are printing to ?

If the device is a screen then there are control codes that you must
print also.

If the device is a file then, no way. This is the reason that HTML was
invented.

Lynn

Re: Bold print

<untld7$2e6pk$1@newsreader4.netcologne.de>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=3802&group=comp.lang.fortran#3802

  copy link   Newsgroups: comp.lang.fortran
Path: i2pn2.org!rocksolid2!news.neodome.net!weretis.net!feeder8.news.weretis.net!newsreader4.netcologne.de!news.netcologne.de!.POSTED.2001-4dd7-c3a0-0-6870-be41-b76f-585d.ipv6dyn.netcologne.de!not-for-mail
From: tkoenig@netcologne.de (Thomas Koenig)
Newsgroups: comp.lang.fortran
Subject: Re: Bold print
Date: Sat, 13 Jan 2024 09:33:27 -0000 (UTC)
Organization: news.netcologne.de
Distribution: world
Message-ID: <untld7$2e6pk$1@newsreader4.netcologne.de>
References: <unrgan$3fra8$1@dont-email.me> <unt2mu$3q6sr$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 13 Jan 2024 09:33:27 -0000 (UTC)
Injection-Info: newsreader4.netcologne.de; posting-host="2001-4dd7-c3a0-0-6870-be41-b76f-585d.ipv6dyn.netcologne.de:2001:4dd7:c3a0:0:6870:be41:b76f:585d";
logging-data="2562868"; mail-complaints-to="abuse@netcologne.de"
User-Agent: slrn/1.0.3 (Linux)
 by: Thomas Koenig - Sat, 13 Jan 2024 09:33 UTC

Lynn McGuire <lynnmcguire5@gmail.com> schrieb:
> On 1/12/2024 7:54 AM, db wrote:
>> I have a program that reads a file of birthdays and prints
>> out impending ones when I activate my (Linux) console.
>> It first prints a header
>>
>>   print '(/" Birthdays:")'
>>
>> Is it possible to get it to print that in bold or a colour?
>> If yes, how?
>
> Ok, I'll bite. So what is the device that you are printing to ?
>
> If the device is a screen then there are control codes that you must
> print also.
>
> If the device is a file then, no way. This is the reason that HTML was
> invented.

Or rather, there are quite a number of ways, depending on how
the file is interpreted afterwards.

Writing HTML to a file and then loading it into a browser is certainly
one way. One thing I someitmes do to write out PostScript from
a Fortran program, where you could use setgrbcolor.

Or you can write out Markdown and insert HTML color.

Or you can...

Re: Bold print

<untpu3$3tebp$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=3803&group=comp.lang.fortran#3803

  copy link   Newsgroups: comp.lang.fortran
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: dieterhansbritz@gmail.com (db)
Newsgroups: comp.lang.fortran
Subject: Re: Bold print
Date: Sat, 13 Jan 2024 11:50:43 +0100
Organization: A noiseless patient Spider
Lines: 26
Message-ID: <untpu3$3tebp$1@dont-email.me>
References: <unrgan$3fra8$1@dont-email.me> <unt2mu$3q6sr$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 13 Jan 2024 10:50:44 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="bbdf5922b485a52c681992f073df6ba6";
logging-data="4110713"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19aGEJ+Y099uEbybGYhJ4cRqgLfZ/TIxFw="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:hDHYaPIlAWWuYqcFY4i8PZmOXRs=
Content-Language: en-US
In-Reply-To: <unt2mu$3q6sr$2@dont-email.me>
 by: db - Sat, 13 Jan 2024 10:50 UTC

On 13.01.2024 05.14, Lynn McGuire wrote:
> On 1/12/2024 7:54 AM, db wrote:
>> I have a program that reads a file of birthdays and prints
>> out impending ones when I activate my (Linux) console.
>> It first prints a header
>>
>>    print '(/" Birthdays:")'
>>
>> Is it possible to get it to print that in bold or a colour?
>> If yes, how?
>
> Ok, I'll bite.  So what is the device that you are printing to ?
>
> If the device is a screen then there are control codes that you must
> print also.
>
> If the device is a file then, no way.  This is the reason that HTML was
> invented.
>
> Lynn
>
>
It's to the console screen.
--
Dieter Britz

Re: Bold print

<8734v13yrl.fsf@tilde.institute>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=3804&group=comp.lang.fortran#3804

  copy link   Newsgroups: comp.lang.fortran
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: yeti@tilde.institute (yeti)
Newsgroups: comp.lang.fortran
Subject: Re: Bold print
Date: Sat, 13 Jan 2024 18:36:06 +0042
Organization: Democratic Order of Pirates International (DOPI)
Lines: 25
Message-ID: <8734v13yrl.fsf@tilde.institute>
References: <unrgan$3fra8$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: dont-email.me; posting-host="7132a503d9d56646dc696c7735901a76";
logging-data="42909"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+esnycYkTHyvOlHqtMN4il"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
Cancel-Lock: sha1:gtRmX7S3KZ+d/ZS/adbJb3VYKg4=
sha1:b2Y/AUubKOP5nScCBuiB7K/yiB4=
X-Face: ]_G&_b@O$RF(L7zT;DQ3-VU}c"F/_Mgy(4^P1,Tt^#0Cq+\qM&-h\&Z.3UuiwV")n~b;26e
5-s.cF/5tMdha-:]4eBHC9vBXnz4_aNe@d4oijVyix?>pC=tzuQhoD2A8P02+\xO4gNfRBE
`B<kE3T-Gps_d0_6`+0W3E9{D
 by: yeti - Sat, 13 Jan 2024 17:54 UTC

Maybe this way?

bold.f90:
------------------------------------------------------------------------
program testbold
call system('tput bold')
print'("Hello, World!")'
call system('tput sgr0')
print'("Bye, World!")'
end program testbold
------------------------------------------------------------------------

That's my 1st hand full of Fortran lines since the early 90s, so please
don't laugh too loud.

Using `system` and `tput` avoids needing
+ to find a Fortran (n)curses library
+ to hardcode the terminal commands
..

It worked for me with Gfortran on OpenBSD. I was too lazy to install
Gfortran on Linux while already having access to it on BSD.

--
I do not bite, I just want to play.

Re: Bold print

<uo0q35$f64s$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=3805&group=comp.lang.fortran#3805

  copy link   Newsgroups: comp.lang.fortran
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: dieterhansbritz@gmail.com (db)
Newsgroups: comp.lang.fortran
Subject: Re: Bold print
Date: Sun, 14 Jan 2024 15:11:49 +0100
Organization: A noiseless patient Spider
Lines: 28
Message-ID: <uo0q35$f64s$1@dont-email.me>
References: <unrgan$3fra8$1@dont-email.me> <8734v13yrl.fsf@tilde.institute>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 14 Jan 2024 14:11:49 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="ae483eb4dbed9842670885d9d3e17526";
logging-data="497820"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+JUKphz2F/X6p7+/tCsMc3pQnFuto+Zv8="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:YQ4L6XIHwF6Sbd91kibKFxkItLw=
Content-Language: en-US
In-Reply-To: <8734v13yrl.fsf@tilde.institute>
 by: db - Sun, 14 Jan 2024 14:11 UTC

On 13.01.2024 18.54, yeti wrote:
> Maybe this way?
>
> bold.f90:
> ------------------------------------------------------------------------
> program testbold
> call system('tput bold')
> print'("Hello, World!")'
> call system('tput sgr0')
> print'("Bye, World!")'
> end program testbold
> ------------------------------------------------------------------------
>
> That's my 1st hand full of Fortran lines since the early 90s, so please
> don't laugh too loud.
>
> Using `system` and `tput` avoids needing
> + to find a Fortran (n)curses library
> + to hardcode the terminal commands
> .
>
> It worked for me with Gfortran on OpenBSD. I was too lazy to install
> Gfortran on Linux while already having access to it on BSD.
>
Thank you Yeti, that works! You have solved my problem.
--
Dieter Britz

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor