# \[ANN\] TerminalGat.jl

**URL:** https://discourse.julialang.org/t/ann-terminalgat-jl/123578
**Category:** Package Announcements
**Tags:** package, announcement
**Created:** [December 7, 2024, 11:47pm UTC](https://discourse.julialang.org/t/ann-terminalgat-jl/123578 "2024-12-07T23:47:04Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![terasakisatoshi](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/terasakisatoshi/32/9187_2.png) [@terasakisatoshi](https://discourse.julialang.org/u/terasakisatoshi)
#### Post date: [December 7, 2024, 11:47pm UTC](https://discourse.julialang.org/t/ann-terminalgat-jl/123578/1 "2024-12-07T23:47:04Z")

</div>

# TerminalGat.jl

I’m happy to announce the release of TerminalGat.jl

[https://github.com/AtelierArith/TerminalGat.jl](https://github.com/AtelierArith/TerminalGat.jl)

## What is `gat`?

The `gat` is a CLI tool written in Go(🐱 cat alternative written in Go.) and created by [koki-develop](https://github.com/koki-develop).

It works like `cat` (display file content in your terminal) and enables syntax highlighting. For instance, you can display files nicely 😃 :

 ![image](https://global.discourse-cdn.com/julialang/original/3X/a/3/a31110482c18c6c970f390b5c44cf95c97006c4f.png)

Our Julia package TerminalGat.jl integrates nicely with `gat` and Julia REPL.

Our Julia package `TerminalGat.jl` exports the following functions and macros:

- `gat`
- `gess`
- `@gess`
- `@code`
- `@gode`

```julia-repl
julia> using Pkg; Pkg.add("TerminalGat")
julia> using TerminalGat
julia> gat("[README.md](http://readme.md/)")
julia> gess("largefile.jl") # works like `less` + highlights julia code
julia> @code sin(1.0) # extracts the method definition
julia> @gode sin(1.0) # highlights julia code
julia> @less sin(1.0) # InteractiveUtils.less
julia> @gess sin(1.0) # InteractiveUtils.less + highlights julia

```

The `@code` works like `InteractiveUtils.less` except it only focus the method definition.

The `@gode` is a macro works like `@code` + `gat`.

 ![image](https://global.discourse-cdn.com/julialang/original/3X/7/5/759681cf7997bda1f6c71246bf5f600330316df9.png)

百聞は一見に如かず(Seeing is believing). Have a try.

---

<div class="post-metadata">

### Author: ![g-gundam](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/g-gundam/32/47593_2.png) [@g-gundam](https://discourse.julialang.org/u/g-gundam)
#### Post date: [December 8, 2024, 1:26am UTC](https://discourse.julialang.org/t/ann-terminalgat-jl/123578/2 "2024-12-08T01:26:50Z")

</div>

> [@terasakisatoshi](#):
>
> created by [koki-develop](https://github.com/koki-develop).

I don’t know how people write as much code as this guy. I see 171 repos with 104 of them being his own.
