From: Yura Kalinichenko <yuk@iceb.vinnitsa.com>
To: ALT Linux Community <community@lists.altlinux.org>
Subject: Re: [Comm] прозрачная печать
Date: Fri, 21 Apr 2006 23:20:02 +0300
Message-ID: <1145650802.8629.16.camel@yuk.home.int> (raw)
In-Reply-To: <200604212356.05708.bush@nojabrsk.ru>
В Птн, 21/04/2006 в 23:56 +0600, serg_bush пишет:
> Добрый день!
> Возник вот такой проблем.
> Хочу из терминала включить прозрачную печать, т.е.
> используя переменные mc4 и mc5 в terminfo катом вывести часть файла на
> принтер. Создал файл
> ========================
> qqqqqqq
> tt
> ^[[5i
> sssssssssss
> tttttttttttt
> ^[[4i
> rrrrrrrrrrrrrrr
> ========================
> делаю cat file и все содержимое выводится на экран, хотя переменные
> mc4 и mc5 в terminfo прописаны и по идее строчки
> sssssssssss
> tttttttttttt
Вы неправильно понимаете для чего предназначены описания terminfo и
потому путаете причину и следствие. Коротко: если бы ваш терминал
поддерживал возможность прозрачной печати - этот пример работал бы
независимо от каких-либо переменных terminfo. Но в linux-консоли
прозрачная печать, по-моему, не поддерживалась никогда. В xterm - должен
бы работать (передавая печатаемый текст конвейером на lpr), но вот
только что попробовал - не хочет - только делает вид, не выводя
печатаемого на экран, но и на lpr - тоже. Возможно сломали, да никто не
заметил - фича-то экзотическая по нынешним временам. Разбираться по
исходникам мне лично лениво, а на вашем месте я бы скорее написал какой-
то фильтр, который вырезал бы из файла нужное (по каким-то меткам) и
отправлял бы на печать.
--
Yura Kalinichenko
next prev parent reply other threads:[~2006-04-21 20:20 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-04-21 17:56 serg_bush
2006-04-21 20:20 ` Yura Kalinichenko [this message]
2006-04-22 11:14 ` serg_bush
2006-04-22 11:59 ` Yura Kalinichenko
2006-04-22 12:36 ` serg_bush
2006-04-22 13:58 ` Michael Shigorin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1145650802.8629.16.camel@yuk.home.int \
--to=yuk@iceb.vinnitsa.com \
--cc=community@lists.altlinux.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git