pspg | Unix pager ( with very rich functionality | Command Line Interface library
kandi X-RAY | pspg Summary
kandi X-RAY | pspg Summary
Unix pager (with very rich functionality) designed for work with tables. Designed for PostgreSQL, but MySQL is supported too. Works well with pgcli too. Can be used as CSV or TSV viewer too. It supports searching, selecting rows, columns, or block and export selected area to clipboard.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of pspg
pspg Key Features
pspg Examples and Code Snippets
Community Discussions
Trending Discussions on pspg
QUESTION
I am writing pager pspg
. There I have to solve following issue. After reading from stdin
I should to reassign stdin
from previous reading from pipe to reading from terminal.
I used
...ANSWER
Answered 2017-Nov-25 at 23:02What less
does in this situation is fall back to fd 2 (stderr). If stderr has been redirected away from the tty, it gives up on trying to get keyboard input, and just prints the whole input stream without paging.
The design of su
doesn't allow for anything better. The new user is running a command on a tty owned by the original user, and that unpleasant fact can't be entirely hidden.
Here's a nice substitute for su
that doesn't have this problem:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install pspg
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page