[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#2327: tput bel does not work (with vt220)

Package: tput
Version: 1.0-5

I can't get `tput bel' to work (but I only tried with TERM=vt220).
See the manpage extracts and transcripts below.


       If capname is of type string, a value of 0 is set  if  the
       capname  is  defined  for this terminal type (the value of
       capname is returned on standard output); a value of  1  is
       set  if  capname is not defined for this terminal type (a
       null value is returned on standard output).

       If capname is of type boolean or string and the -S  option
       is  used,  a  value  of 0 is returned to indicate that all
       lines were successful.  No indication of which line failed
       can be given so exit code 1 will never appear.  Exit codes
       2, 3, and 4 retain their usual interpretation.

       If capname is of type integer, a value of 0 is always set,
       whether  or not capname is defined for this terminal type.
       To determine if capname is defined for this terminal type,
       the  user must test the value of standard output.  A value
       of -1 means that capname is not defined for this terminal

       tput prints the following error messages and sets the cor-
       responding exit codes.

       exit code   error message
       0           (capname is a numeric variable that is not specified in the
                   terminfo(4) database for this terminal type, e.g.
                   tput -T450 lines and tput -T2621 xmc)
       1           no error message is printed, see the EXIT CODES section.
       2           usage error
       3           unknown terminal type or no terminfo database
       4           unknown terminfo capability capname

chiark:~/junk> tput smso | cat -v
chiark:~/junk> tput bel | cat -v
chiark:~/junk> tput bel
chiark:~/junk> echo $?
chiark:~/junk> tput bell
tput: Unknown terminfo capability `bell'
chiark:~/junk> echo $?
chiark:~/junk> echo $TERM
chiark:~/junk> echo $TERMCAP

chiark:~/junk> infocmp vt220
#	Reconstructed via infocmp from file: /etc/terminfo/v/vt220
vt220|DEC VT220 in vt100 emulation mode,
	am, mir, xenl, xon,
	cols#80, lines#24, vt#3,
	acsc=kkllmmjjnnwwqquuttvvxx, bel=^G,
	blink=\E[5m$<2>, bold=\E[1m$<2>, civis=\E[?25l,
	clear=\E[H\E[2J$<50>, cnorm=\E[?25h, cr=^M,
	csr=\E[%i%p1%d;%p2%dr, cub1=^H, cud1=\E[B,
	cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH$<10>, cuu1=\E[A,
	dch1=\E[P, dl1=\E[M, ed=\E[J$<50>, el=\E[K$<3>,
	home=\E[H, ht=^I, if=/usr/lib/tabset/vt100,
	il1=\E[L, ind=\ED$<20/>, is2=\E[1;24r\E[24;1H,
	kbs=^H, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C,
	kcuu1=\E[A, kdch1=\E[3~, kend=\E[4~, kf1=\EOP,
	kf10=\E[29~, kf2=\EOQ, kf3=\EOR, kf4=\EOS,
	kf5=\E[17~, kf6=\E[18~, kf7=\E[19~, kf8=\E[20~,
	kf9=\E[21~, khome=\E[1~, kich1=\E[2~, knp=\E[6~,
	kpp=\E[5~, rc=\E8, rev=\E[7m$<2>,
	rf=/usr/lib/tabset/vt100, ri=\EM$<14/>,
	rmacs=\E(B$<4>, rmir=\E[4l, rmso=\E[m, rmul=\E[m,
	rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, sc=\E7,
	sgr0=\E[m$<2>, smacs=\E(0$<2>, smir=\E[4h,
	smso=\E[7m, smul=\E[4m,
chiark:~/junk> dpkg -l 'ncurses*'
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name         Version   Rev  Description
un  ncurses                     (no description available)
ii  ncurses-deve     1.9.4 0    Video terminal manipulation: Developer's librar
ii  ncurses-runt     1.9.4 0    Video terminal manipulation: run-time files and

Reply to: