| От | Andrew Dunstan |
|---|---|
| Тема | use of pager on Windows psql |
| Дата | |
| Msg-id | 482F43E0.6000003@dunslane.net обсуждение исходный текст |
| Ответы |
Re: use of pager on Windows psql
|
| Список | pgsql-hackers |
psql's print.c contains this piece of code:
/** PageOutput** Tests if pager is needed and returns appropriate FILE pointer.*/
FILE *
PageOutput(int lines, unsigned short int pager)
{ /* check whether we need / can / are supposed to use pager */ if (pager
#ifndef WIN32 && isatty(fileno(stdin)) && isatty(fileno(stdout))
#endif ) {
Why are we not doing the isatty tests on Windows? We can and do use
isatty on Windows elsewhere, so I'm a bit mystified about this.
In fact, it looks to me like it would be much more sensible to #include
"settings.h" and then simply test pset.notty for all platforms.
cheers
andrew
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера