Package: bsdmainutils
Version: 6.0.17
Severity: normal

On my system 'ul' doesn't underline any text.

  % echo hello | ul
  hello         # no underline.

...but the terminal can do it with 'echo':

  % echo -e "\033[38mhello\033[39m"
  hello         # underlined nicely, but I can't show it in 7-bit ASCII.

The 'ul' man page says the 'TERM' variable plays a role:

  % man ul | grep -A 4 -n "TERM var"
  34:     TERM  The TERM variable is used to relate a tty device with its device
  35-           capability description (see termcap(5)).  TERM is set at login
  36-           time, either by the default terminal type specified in 
/etc/ttys or
  37-           as set during the login process by the user in their login file
  38-           (see environ(7)).

On my xterm TERM is:

  %echo $TERM
  xterm

...perhaps that's wrong?  But the man page is vague as to what TERM
might or should be set to.  It also recommends man pages such as
'termcap(5)', (which is Greek to me), and 'environ(7)' which unhelpfully
says:

  % man environ | grep -n "terminal type"
  46:       TERM   The terminal type for which output is to be prepared.

...less than 'man ul' said.

And so I'm unable to tell if:

  1) my system is misconfigured. In which case 'man ul' should include
     some common TERM examples for mixed-up users.

  2) 'ul' is buggy.

If it matters, I've tried 'ul' (without success) from a console
(TERM=linux), 'gnome-terminal' and 'xterm', (TERM=xterm).  


Hope this helps...


-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.9-1-686
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C)

Versions of packages bsdmainutils depends on:
ii  bsdutils                    1:2.12p-4    Basic utilities from 4.4BSD-Lite
ii  debconf [debconf-2.0]       1.4.47       Debian configuration management sy
ii  debianutils                 2.13.2       Miscellaneous utilities specific t
ii  libc6                       2.3.2.ds1-20 GNU C Library: Shared libraries an
ii  libncurses5                 5.4-4        Shared libraries for terminal hand

-- debconf information:
  bsdmainutils/calendar_lib_is_not_empty:
  bsdmainutils/calendar_config_moved:


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to