Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
old style lineprinter banner printing?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
dambacher
Apprentice
Apprentice


Joined: 11 Feb 2003
Posts: 289
Location: Germany

PostPosted: Fri Apr 26, 2013 9:41 pm    Post subject: old style lineprinter banner printing? Reply with quote

Hi there

I'd like to print an old style line printer banner on fanfold paper.

I have a working old style printer (Tally!!) and enough fanfold paper but I nee this old style banner program which creates the text vertically.

So figlet, toilet and banner won't work because they print the text horizontally

Who can point me to the right software?

Thanks
dambacher
Back to top
View user's profile Send private message
Fitzcarraldo
Advocate
Advocate


Joined: 30 Aug 2008
Posts: 2034
Location: United Kingdom

PostPosted: Sat Apr 27, 2013 2:59 am    Post subject: Reply with quote

TOIlet can print vertically/landscape. For example, the following prints a banner across twelve consecutive sheets of A4 paper with my inkjet printer:

Code:
toilet -f doh -F right -w 10000 'A pessimist sees the difficulty in every opportunity; an optimist sees the opportunity in every difficulty.' | lpr


(I'm using the FIGlet font doh.flf in the above example, and I have both FIGlet and TOIlet installed.)

I don't have a dot-matrix printer so cannot check if the above command would print the banner nicely with fan-fold paper, but you could try it and see. I expect you would need to adjust the printer margins.

Code:
$ toilet -f doh -F right -w 10000 'Welcome'
                                     WW:W:W:WW   
                                 WW:::::::::WW   
                             WW:::::::::::::WW   
                         WW::::::::::W:W:W:WWW   
                     WW::::::::::WW               
                 WW::::::::::WW                   
              WW:::::::::WW                       
              W :W::::::::W: W                   
                  W :W::::::::W: W               
                      W :W::::::::W: W           
                          W :W::::::WW           
                         WW:::::::::WW           
                     WW::::::::::WW               
                 WW::::::::::WW                   
              WW:::::::::WW                       
              W :W::::::::W: W                   
                  W :W::::::::W: W               
                      W :W::::::::W: W W W W W   
                          W :W::::::::::::::WW   
                   ee:e:e:e:e:e::e::::::::::WW   
                ee::::::::::::::::ee:W::::::WW   
              ee::::::::::::::::::::eeW W W W     
              ee:::::::::e:::::e::::ee           
              ee:::::ee ee::ee  ee::ee           
              ee::ee    ee::ee  ee::ee           
              ee::ee    ee::e: ee:::ee           
              ee::ee    ee::::::::::ee           
              ee:eee    ee::::::::ee             
              lll:l:l: l lel:l:lel l ll:l:l:ll   
              ll::::::::::::::::::::::::::::ll   
              ll::::::::::::::::::::::::::::ll   
              ll:l:l:clclclclclcl l l l l l l     
                 cc:::::::::::::c: c             
               cc:::::::::::::::::c: c           
              cc:::::::::c:c::::::::cc           
              cc:::::cc     c :c::::cc           
              cc::::cc        cc::::cc           
              cc::::cc        cc::::cc           
              cc::::c:cc    ccc:::::cc           
              cc::::::cc    cc::::::cc           
              cc::::::cc    cc::::::cc           
              c coo:o:o:o:o:o:o:o:coc             
               oo:::::::::::::::::o: o           
              oo:::::::o:o:o:o::::::oo           
              oo::::oo        oo::::oo           
              oo::::oo        oo::::oo           
              oo::::o: o o o oo:::::oo           
              oo::::::::::::::::::::oo           
                oo::::::::::::::::oo             
              mmm:m:m:m:m:m:m:m:m: m             
              mm::::::::::::::::::m: m           
              mm:m:m:m:m:m:m::::::::mm           
                            mm::::::mm           
               m m m m m m mm:::::::mm           
              mm:::::::::::::::::mm               
              mm::::::::::::::::m: m             
              m m m m m m m :m::::::mm           
                            mm::::::mm           
              mmm:m:m:m:m:m:::::::::mm           
              mm:::::::::::::::::::mm             
              mm:m:m:e:e:e:e:e:e:mm               
                 ee:::::::::::::e: e             
               ee:::::::::::::::::e: e           
              ee::::::::::::::::::::ee           
              ee:::::::eee:::ee :e::ee           
              ee:::ee   ee::ee  ee::ee           
              ee::ee    ee::ee  ee::ee           
              ee::ee    ee::::e:::::ee           
              ee::ee    ee:::::::::ee             
              e e e     e :e:::::ee               
                            e e e

_________________
Clevo W230SS: amd64, VIDEO_CARDS="intel modesetting nvidia".
Compal NBLB2: ~amd64, xf86-video-ati. Dual boot Win 7 Pro 64-bit.
OpenRC udev elogind & KDE on both.

Fitzcarraldo's blog
Back to top
View user's profile Send private message
dambacher
Apprentice
Apprentice


Joined: 11 Feb 2003
Posts: 289
Location: Germany

PostPosted: Sat Apr 27, 2013 7:40 am    Post subject: Reply with quote

hi fitzcarraldo
thanks for your info

I checked toilet and could not get it to print vertically because I did not find the filters argument for it.
Now i checked it out (Version 0.2 from portage) but this version ignores the -w option and linewraps.

I had to persuade my portage to install the hard masked 0.3-version and this works!

Code:
                              ttt:t:tt           
                              tt::::tt           
                              tt::::tt           
                  ttt:t:t:t:t:::::::t:t:t:tt     
                tt::::::::::::::::::::::::t: t   
              tt::::::::::::::::::::::::::::tt   
              tt:::::tt t t t :t::::ttt t t t     
              tt::::tt        tt::::tt           
              tt::::t: t      tt::::tt           
              tt::::::tt      t t t t             
              t :t::::tt               h h h h   
              hhh:h:h:h:h:h:h:h:h:h:h:::::::hh   
              hh::::::::::::::::::::::::::::hh   
              hh:::::::::::::::::::h:h:h:h:hhh   
              h h h h h h h :h::::h: h           
                              hh::::hh           
                             hh:::::hh           
              hhh:h:h:h:h:h:::::::hh             
              hh:::::::::::::::::hh               
              hh:::::::::::::::hh                 
              h haa:a:a:hah h                     
              aa::::::::::aa    aaa:aa           
              aa:::::a:a::::aa  aa::aa           
              aa::aa    aa::aa  aa::aa           
              aa::aa    aa::aa  aa::aa           
              aa::::a:a:::::a: aa:::aa           
                aa::::::::::::::::::aa           
              aa:::::::::::::::::::aa             
              aa:aa a a a a a nnn:n:nn           
              nnn:n:n:n:n:n:n:::::::nn           
              nn::::::::::::::::::nn             
              nn:n:n:n:n:n:n::::::::nn           
                            nn::::::nn           
                            nn::::::nn           
              nnn:n:n:n:n:n:::::::::nn           
              nn:::::::::::::::::nnn             
              nk:k:k:k:n:n:n:n:nn      k k k k   
              kk::::::k:k:k:k:k:k:k:k:::::::kk   
              kk::::::::::::::::::::::::::::kk   
              kk::::::::::::::::::::::::::::kk   
              k k k k :k:::::kk k k k k k k k     
                   kk:::::::::k: k               
               kk:::::::::::::::::k: k           
              kk:::::::kk k :k::::::kk           
              kk:::sks s      ks:s::kk           
              kss:::::ss    s:::s:kskk           
              ss::::::ss  s:::::::s: s           
              ss:::::ss  s::::::::::ss           
              ss::::ss  ::::s ss::::ss           
              ss::::s:s::::s sss::::ss           
              ss::::::::::  ss::::::ss           
                ss::::::s   ss:::::ss             
                  s :ss     s :ss                 
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum