home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.fortran      Putting John Backus on a giant pedestal      5,127 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 4,570 of 5,127   
   db to yeti   
   Re: Bold print   
   14 Jan 24 15:11:49   
   
   From: dieterhansbritz@gmail.com   
      
   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   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca