Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^2: Plot Graph in Console by printing special character say * and spaces using matrix structure in Perl

by programmingzeal (Beadle)
on Sep 10, 2022 at 07:27 UTC ( [id://11146810]=note: print w/replies, xml ) Need Help??


in reply to Re: Plot Graph in Console by printing special character say * and spaces using matrix structure in Perl
in thread Plot Graph in Console by printing special character say * and spaces using matrix structure in Perl

I found the alternative of `stty size` on Linux for windows console size. Just a simple perldoc -q "screen size" revealed following:

How do I get the screen size? If you have Term::ReadKey module installed from CPAN, you can use it to fetch the width and height in characters and in pixels:

use Term::ReadKey; my ($wchar, $hchar, $wpixels, $hpixels) = GetTerminalSize();

The code is working though I will modify it. Thanks for giving me a start!!
  • Comment on Re^2: Plot Graph in Console by printing special character say * and spaces using matrix structure in Perl

Replies are listed 'Best First'.
Re^3: Plot Graph in Console by printing special character say * and spaces using matrix structure in Perl
by Anonymous Monk on Sep 10, 2022 at 10:30 UTC

    $hchar is clearly reported 1 less than it should be, on Windows. Ah yes, see line 506

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11146810]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (6)
As of 2025-11-10 22:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your view on AI coding assistants?





    Results (67 votes). Check out past polls.

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.