# I have some nice custom prinitng of an array, but I want to configure the operatio

**URL:** https://discourse.julialang.org/t/i-have-some-nice-custom-prinitng-of-an-array-but-i-want-to-configure-the-operatio/57384
**Category:** General Usage
**Created:** [March 17, 2021, 1:55pm UTC](https://discourse.julialang.org/t/i-have-some-nice-custom-prinitng-of-an-array-but-i-want-to-configure-the-operatio/57384 "2021-03-17T13:55:15Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![BridgeBot](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bridgebot/32/21491_2.png) [@BridgeBot](https://discourse.julialang.org/u/BridgeBot)
#### Post date: [March 17, 2021, 1:55pm UTC](https://discourse.julialang.org/t/i-have-some-nice-custom-prinitng-of-an-array-but-i-want-to-configure-the-operatio/57384/1 "2021-03-17T13:55:15Z")

</div>

I have some nice custom prinitng of an array, but I want to configure the operation `Base.print_matrix(IOContext(io, :compact =&gt; true, :limit =&gt; true), A)` so that it takes _less_ rows that the fully available rows of the console. Specifically, I do

```julia
function Base.show(io::IO, A::ClimArray)
    summary(io, A)
    print(io, "and")
    printstyled(io, " data: "; color=:green)
    dataA = data(A)
    print(io, summary(dataA), "\n")
    call_the_matrix_show_function(io, data(A))
end

```

and I want to _measure_ how many rows the printing before calling the matrix print takes, and subtract that from the matrix printing. Any help on how I can do this?

Note that the original poster on Slack cannot see your response here on Discourse. Consider _transcribing the appropriate answer back to Slack_, or pinging the poster here on Discourse so they can _follow this thread_.  
[(Original message :slack:)](https://julialang.slack.com/archives/C6A044SQH/p1615989292017000?thread_ts=1615989292.017000&cid=C6A044SQH) [(More Info)](https://github.com/JuliaCommunity/SlackBridge)

---

<div class="post-metadata">

### Author: ![Datseris](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/datseris/32/13406_2.png) [@Datseris](https://discourse.julialang.org/u/Datseris)
#### Post date: [March 17, 2021, 1:56pm UTC](https://discourse.julialang.org/t/i-have-some-nice-custom-prinitng-of-an-array-but-i-want-to-configure-the-operatio/57384/2 "2021-03-17T13:56:07Z")

</div>

Hi I posted this! I wish I could have chosen my opening sentence better! 😃

Further more, the `&gt;` should be replaced by `true`. I simply call `Base.print_matrix(IOContext(io, :compact => true, :limit => true), A)`.
