🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.bugs.sys5
Article #1121

"Feature" of tput(1) in SV5.2 & SV5.3

#1121
From: David E A Wilson
Date: Wed, 17 May 1989 07:11
19 lines
1091 bytes
In the parms description of the tput(1) command the following
sentence appears:

An all numeric argument will be passed to the attribute as a number.

This occurs even if the parameter is defined to be a string. For
example, to program the function key labels on my terminal the
following definition is used:

	pln=\eP0;1%p1%{1}%-%d/%s\e\\

The command "tput pln 1 abcd" works while "tput pln 1 1234"
fails. Why should I not be able to have a number in the label?
[This is a major problem as the terminal expects the string in
hex and thus numeric strings are quite likely.]
Will this be fixed in later releases of SysV or is it to late?

David Wilson	(david@wolfen.cc.uow.oz.au)
Technical Details
Message-ID: <787@uowcsa.cs.uow.oz>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!lll-winken!uunet!munnari!otc!metro!basser!wolfen!uowcsa!david

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!lll-winken!uunet!munnari!otc!metro!basser!wolfen!uowcsa!david
From: david@uowcsa.cs.uow.oz (David E A Wilson)
Newsgroups: comp.bugs.sys5
Subject: "Feature" of tput(1) in SV5.2 & SV5.3
Keywords: tput pln
Message-ID: <787@uowcsa.cs.uow.oz>
Date: 17 May 89 07:11:37 GMT
Organization: Uni of Wollongong, NSW, Australia
Lines: 19