Giter Site home page Giter Site logo

Erase bottom line at exit about pspg HOT 13 CLOSED

Ximalas avatar Ximalas commented on May 29, 2024
Erase bottom line at exit

from pspg.

Comments (13)

okbob avatar okbob commented on May 29, 2024

Can you describe more your idea? I am using pspg years from psql and I hadn't like this necessity.

How do you use pspg?

from pspg.

Ximalas avatar Ximalas commented on May 29, 2024

I run pspg from within psql, and to me it looks cleaner if the bottom line isn't a mix of the psql command prompt and the key hint bar when I exit pspg.

from pspg.

okbob avatar okbob commented on May 29, 2024

from pspg.

Ximalas avatar Ximalas commented on May 29, 2024

I'm using FreeBSD current, MATE, Alacritty, and screen. See https://ximalas.info/~trond/pspg/pspg-001.png.

from pspg.

okbob avatar okbob commented on May 29, 2024

from pspg.

Ximalas avatar Ximalas commented on May 29, 2024

Actually, -X isn't that bad. Yes, it strips off the colours when I hit the q key, but the bottom line is erased before psql displays its command prompt.

from pspg.

okbob avatar okbob commented on May 29, 2024

now you can use options --at-end-clean, --at-end-reset and --at-end-erase-line.

export PSQL_PAGER="pspg --at-end-erase-line"
psql ...

please, check

from pspg.

Ximalas avatar Ximalas commented on May 29, 2024

I tried --at-end-erase-line and it's perfect. There is a typo for --at-end-erase-line in the help text, args.c, line 381. https://github.com/okbob/pspg/blob/master/src/args.c#L381

from pspg.

Ximalas avatar Ximalas commented on May 29, 2024

Maybe saying on exit is better than saying at end.

from pspg.

okbob avatar okbob commented on May 29, 2024

from pspg.

okbob avatar okbob commented on May 29, 2024

from pspg.

Ximalas avatar Ximalas commented on May 29, 2024

This looks good to me. I hope others find this as a useful change.

from pspg.

okbob avatar okbob commented on May 29, 2024

from pspg.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.